Access denied to '...' directory. Failed to start monitoring directory changes.

G

Guest

We are getting this error message in one of our ASP.NET web application every now and then. The frequency of the error is not fixed. It appears anytime and in any page. The permissions are set properly as the whole application works fine. It is just that after few hours this error appears. It is fixed if the IIS is restarted or the ASP.NET worker process is recycled. We have Framework 1.0 and the 2 methods given in http://support.microsoft.com/default.aspx?scid=kb;EN-US;317955 doesn't fix it. We cannot upgrade to Framework 1.1 for some other reason. Also the Trace that we get is not match with traces given in any support articles. The physical directory is on a different fileserver but that is the case for another application that works well. All settings are identical for both the applications. Here is the trace that we get ..

Access denied to 'FULL FILE PATH HERE' directory. Failed to start monitoring directory 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 'FULL FILE PATH HERE' directory. Failed to start monitoring directory 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 (0x80004005): Access denied to 'FULL FILE PATH HERE' directory. Failed to start monitoring directory changes.
System.Web.NativeDirMonCompletion..ctor(String dir, Boolean watchSubtree, Boolean renamesOnly, NativeFileChangeNotification callback) +20
System.Web.DirectoryMonitor.StartMonitoringFile(FilePathParse fpp, FileChangeEventHandler callback) +27
System.Web.FileChangesMonitor.StartMonitoringFile(String fileName, FileChangeEventHandler callback) +11
System.Web.Caching.CacheDependency.Init(String[] filenames, String[] cachekeys, CacheDependency dependency, DateTime start) +147
System.Web.Caching.CacheDependency..ctor(String[] filenames, DateTime start) +3
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +59
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +12
System.Web.UI.TemplateParser.GetParserCacheItem() +8
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +11
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +3
System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, String inputFile, HttpContext context) +4
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +1
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +17
System.Web.MapHandlerExecutionStep.Execute() +7
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +17

Anyone know a solution to this

Thanks
Amit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top