problem in uploading a file

March 17, 2009 at 22:40:15
Specs: Windows XP
i m facing a problem on uploading a file on sever but working on localy properly
show error message as-
access to the path (file name) is denied
Exception Details: System.UnauthorizedAccessException: Access to the path 'pk.txt' 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) 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 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.

See More: problem in uploading a file

Report •

March 18, 2009 at 13:49:42
Hi, suggest that you tried granting permission to the Network Service user instead of the ASPNET user, then modify permissions within the folder (rather than full permission).

Report •
Related Solutions

Ask Question