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.
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.
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).
Summary: Hello, I am a little new to writing PHP, but stumbled my way to this point. I got a script that is supposed to add the file name to my database, and then upload the file to a specific directory. It ad...
Summary: I am facing some problem with file upload control in asp.net 2.0..while uploading a file onto the server.this is all working fine on the local development machine.but giving problem on the web server ...
Summary: Hello everyone, I'm quite new to the php world so please bear with me! I'm currently working on a webstore using php and its almost finished....I'm trying to create a page that the user is directed to...