• 1401/02/13

Access to the pathis denied. مشکل آپلود عکس :

سلام و عرض ادب  بنده هنگام آپلود عکس در پروژه  به این مشکل میخورم  ممنون مشم کمکم کنید
 

Access to the path 'C:\Inetpub\vhosts\Images\ProductImages\bb39164a-0859-4ee8-a529-96e46de98f1f.jpg' 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 'C:\Inetpub\vhosts\\Images\ProductImages\bb39164a-0859-4ee8-a529-96e46de98f1f.jpg' 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.

  • 1401/02/14
  • ساعت 23:12

سلام دوست من وقتتون بخیر 

این لینک رو مطالعه کنید


  • 1401/02/15
  • ساعت 00:24

سلام مشکلم حل شد ربط به هاست داشت که پشتیبانی باید درست میکرد سپاس فراوان 


  • 1401/02/15
  • ساعت 14:11

خواهش میکنم دوست من

خداروشکر مشکلتون حل شد موفق باشید


logo-enamadlogo-samandehi