Author: vtsnowrider | Posted on: 4/21/2006 7:01:48 PM | Views : 423

Hi,
I'm using the File Upload control.  It works perfect on my own/local/devleopment machine, but when I publish the web pages to my web host and run the file upload page, I get the following error after clicking my File Upload button.
Access to the path 'D:\inetpub\mywebfolder\subfoldername\filename' 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 ...

Go to the complete details ...