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

From: Amit (amitg_newsgroupsREMOVECAPS_at_hotmail.com)
Date: 03/10/04

  • Next message: Alek Davis: "Re: Encrypt/Decrypt"
    Date: Tue, 9 Mar 2004 15:26:06 -0800
    
    

    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) +208
       System.Web.DirectoryMonitor.StartMonitoringFile(FilePathParse fpp, FileChangeEventHandler callback) +271
       System.Web.FileChangesMonitor.StartMonitoringFile(String fileName, FileChangeEventHandler callback) +114
       System.Web.Caching.CacheDependency.Init(String[] filenames, String[] cachekeys, CacheDependency dependency, DateTime start) +1479
       System.Web.Caching.CacheDependency..ctor(String[] filenames, DateTime start) +38
       System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +593
       System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
       System.Web.UI.TemplateParser.GetParserCacheItem() +88
       System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +116
       System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +36
       System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, String inputFile, HttpContext context) +43
       System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +14
       System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +174
       System.Web.MapHandlerExecutionStep.Execute() +78
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173

    Anyone know a solution to this?

    Thanks,
    Amit


  • Next message: Alek Davis: "Re: Encrypt/Decrypt"

    Relevant Pages

    • Access denied to ... directory. Failed to start monitoring directory changes.
      ... Failed to start monitoring directory changes. ... An unhandled exception occurred during the execution of the current web request. ... Exception Details: System.Web.HttpException: Access denied to 'FULL FILE PATH HERE' directory. ... System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +116 ...
      (microsoft.public.dotnet.general)
    • Re: win whisky
      ... An unhandled exception occurred during the execution of the ... current web request. ... Microsoft.Http.HttpMethodExtensions.Post(HttpClient client, String uri, ... controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 ...
      (uk.rec.competitions)
    • Re: win whisky
      ... An unhandled exception occurred during the execution of the ... current web request. ... Microsoft.Http.HttpMethodExtensions.Post(HttpClient client, String uri, ... controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 ...
      (uk.rec.competitions)
    • Re: error: The operation has timed-out (executionTimeout?)
      ... current web request. ... Exception Details: System.Net.WebException: The operation has timed-out. ... exception can be identified using the exception stack trace below. ... String strLogin, String strPassword, String strDatabase, String strServer, ...
      (microsoft.public.dotnet.framework.aspnet)
    • RE: Detailed ASP.Net info not displaying in browser
      ... HTTP 500 page when an exception is thrown from the web service. ... at VOSE.Data.DataRequest.dr_DB2Process.DeleteCommRows(String company, String ... objQueue, tOrderManagementIndicator omindicator, Int32 intTriggerId) in ... Microsoft Online Community Support ...
      (microsoft.public.dotnet.xml)