Search This Blog

Monday, September 3, 2007

Access denied to c:\inetpub\wwwroot\xx. Failed to start monitoring file changes.

When try to run or compile an ASP.NET application, you get error message:
Access denied to 'c:\inetpub\wwwroot\xxxxxx\'. Failed to start monitoring file changes.

This is occur when try to run
  1. a copied version of ASP.NET source code (copy ASP.NET source code from one development machine to another machine)
  2. Folder permission has been reset.

Aspnet_wp.exe process identity Or IUSR_(machinename) does not have permissions on one of the directories in the below file path:
  • Web.config files
  • Files in the Bin directory of an ASP.NET application
  • Cache dependency files

Grant the required permissions on all of the directories in the ASP.NET process account (ASPNET) and IUSR_(machinename):
Before you start, Please make sure you have turn off Simple File Sharing if you are using windows xp.

  1. In Windows Explorer, browse to the application folder or to the virtual directory that contains the content (for example, c:\inetpub\wwwroot\xx).
  2. Right-click the folder, and then click Properties.
  3. On the Security tab, click Add.
  4. On the "Select Users or Groups" window, click on Advance
  5. Click on Find Now button, you will see List of users
  6. Select ASPNET and IUSR_(machinename) then click OK to close the"Select Users or Groups" window
  7. Allow the following permissions for the ASPNET and IUSR_(machinename) account:
    • Read & Execute
    • List Folder Contents
    • Read
  8. If you want to replace all child object permission with the same permission, Click on Advance and select check box "Replace permission entries on all child objects with entries shown here that apply to child objects" and click OK.
  9. Click OK to close the Properties dialog box and to save the changes.
  10. Restart IIS.

1 comment:

Anonymous said...

I just need to know how to get my own username and password after installing apache and then going to http://localhost/ and not being able to log in. Which file contains that info, or where is the database that has it in a standard apache 2.0 installation on Windows XP?