PDA

View Full Version : سوال: ارور access denied در اجرای گزارش استیمول با استفاده از MVC



mehdi zanjani
چهارشنبه 24 فروردین 1401, 14:22 عصر
با سلام،
من یک گزارش استمول دارم که با MVC در IIS Express بدون هیچ اروری اجرا میشه ولی بعد از پیاده سازی در IIS به ارور زیر بر میخورم


. Access to the path 'Stimulsoft' is denied
System.UnauthorizedAccessException: Access to the path 'Stimulsoft' is denied


:Code in Controller

using (var report = new StiReport())
{
report.Load(Server.MapPath("~/Content/SalaryReport.mrt"));
report.Compile();

fakhravari
سه شنبه 14 تیر 1401, 10:49 صبح
این دسترسی بده

nassim0
شنبه 17 تیر 1402, 15:33 عصر
سلام من هم همین مشکل را دارم در IIS Express بدون هیچ اروری اجرا میشه ولی بعد از پیاده سازی در هاست خطای زیر رو میده . مکنه راهنمایی کنید :


ccess to the path 'Stimulsoft' is denied.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path 'Stimulsoft' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:



An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

fakhravari
شنبه 24 تیر 1402, 08:28 صبح
به یک کارشناس شبکه مطرح کنید. باید دسترسی بدهد