If your ASP.NET program is attempting to read, write and/or delete a fie it can display the error “Access to Path … is Denied”. If this is the case, the directory may have the incorrect security settings.
Here are the steps to add the correct the user security settings on Windows Server 2003:
1. Find the folder or file that you are trying to access.
2. Right-click the folder
3. Select Properties
4. Click the Security tab
5. Click the Add button
6. Enter the user: <SERVERNAME>\IIS_WPG
7. Click Check Names button
8. Click OK button
9. Verify user has correct permissions (Read/Write)
10. Click OK button
Other Windows operating systems (XP, Vista, 7) may require the user: <SERVERNAME>\ASPNET to be added.
ASP.NET – Access To Path is Denied
If your ASP.NET program is attempting to read, write and/or delete a fie it can display the error “Access to Path … is Denied”. If this is the case, the directory may have the incorrect security settings.
Here are the steps to add the correct the user security settings on Windows Server 2003:
1. Find the folder or file that you are trying to access.
2. Right-click the folder
3. Select Properties
4. Click the Security tab
5. Click the Add button
6. Enter the user: <SERVERNAME>\IIS_WPG
7. Click Check Names button
8. Click OK button
9. Verify user has correct permissions (Read/Write)
10. Click OK button
Other Windows operating systems (XP, Vista, 7) may require the user: <SERVERNAME>\ASPNET to be added.
Related Posts