Failed to start monitoring file changes

Problem

You see this error message when running your application:

Server Error in ‘/XXX’ Application.

Access denied to ‘C:\Documents and Settings\...’ Failed to start monitoring file changes.

Description:  An unhandled expression occurred during the execution of the current web request.  Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:  System.Web.HttpException: Access denied to ‘C:\Documents and Settings\...’ Failed to start monitoring file changes.

In some cases, the ASPNET account no longer has permissions to access webroot (c:\inetpub\wwwroot by default).

Solution

See the following Microsoft Knowledge Base for solutions.  Enter “Failed to start monitoring file changes” into the knowledge base’s search engine for detailed solutions.

http://www.dotnet247.com/247reference/a.aspx?u=http://support.microsoft.com/default.aspx?scid=kb

Other information can be found at these links:

http://forums.smartertools.com/ShowPost.aspx?PostID=6716

http://forums.rainbowportal.net/ShowPost.aspx?PostID=7591

See Also

Part VII:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages