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.

  • Delicious
  • Share
  • Subscribe to RepeatGeek

Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to RepeatGeek

Subscribe via RSS

Enter your email address: