Thursday, July 16, 2009

"Failed to start monitoring directory changes" error message when you browse to an ASP.NET page

Access denied to 'C:\Inetpub\wwwroot\myapp\default.aspx'. Failed to start
monitoring file changes.
Description: An unhandled exception 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:\Inetpub\wwwroot\myapp\default.aspx'. Failed to start monitoring file
changes.

Source Error:


An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.


Stack Trace:


[HttpException (0x80070005): Access denied to
'C:\Inetpub\wwwroot\myapp\default.aspx'. Failed to start monitoring file
changes.]
System.Web.DirectoryMonitor.AddFileMonitor(String file) +381
System.Web.DirectoryMonitor.StartMonitoringFile(St ring file,
FileChangeEventHandler callback, String alias) +76
System.Web.FileChangesMonitor.StartMonitoringPath( String alias,
FileChangeEventHandler callback) +495
System.Web.Caching.CacheDependency.Init(Boolean isPublic, Boolean
isSensitive, String[] filenamesArg, String[] cachekeysArg, CacheDependency
dependency, DateTime utcStart) +1535
System.Web.Caching.CacheDependency..ctor(Boolean isSensitive, String[]
filenames, DateTime utcStart) +50

System.Web.Configuration.HttpConfigurationSystem.G etCacheDependencies(Hashta
ble cachedeps, DateTime utcStart) +144
System.Web.Configuration.HttpConfigurationSystem.C omposeConfig(String
reqPath, IHttpMapPath configmap) +697
System.Web.HttpContext.GetCompleteConfigRecord(Str ing reqpath,
IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean
canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Excepti on e, Boolean canThrow)
+40
System.Web.HttpRuntime.FinishRequest(HttpWorkerReq uest wr, HttpContext
context, Exception e) +479


1) try to give full access control to my
account on the %windir%microsoft.net\framework\v1.x.x.xxx\Tempora ry ASP.NET
Files, but the error persists. Actually this step is not necessary, since
Administrators already have full access control of the directories.

2)check the folder permissions for the application some times the respective aspnet account

http://support.microsoft.com/kb/317955

No comments:

Post a Comment