Computing.Net > Forums > Web Development > problem in uploading a file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

problem in uploading a file

Reply to Message Icon

Name: prabhash yadav
Date: March 17, 2009 at 22:40:15 Pacific
OS: Windows XP
Subcategory: Javascript/Ajax
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Radix-64
Date: March 18, 2009 at 13:49:42 Pacific
Reply:

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).


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: problem in uploading a file

Uploading a file using php www.computing.net/answers/webdevel/uploading-a-file-using-php/2751.html

File Upload Control (ASP.NET) www.computing.net/answers/webdevel/file-upload-control-aspnet/3348.html

creating a php upload page www.computing.net/answers/webdevel/creating-a-php-upload-page/2791.html