Event ID 1310 - Failed to start monitoring changes to '\\*MYUNCPATH*\web.config'RSS

1 reply

Last post Nov 15, 2019 08:29 AM by Yuk Ding

  • Event ID 1310 - Failed to start monitoring changes to '\\*MYUNCPATH*\web.config'

    Nov 14, 2019 06:24 PM|JCGAFC|LINK

    We are having issues with loading pages that link to folders that contain more than 455 items. The only reason i was able to figure out that the items in a folder was the problem, was from this post: https://bit.ly/2CFPBU5  I moved the files into subfolders, and the error went away.

    Our file server is running Windows Server 2019

    Our web server is running Windows Server 2012 R2, with IIS 8.5.9600.16384

    This is the error we receive when browsing files with larger than 455 items in:

    Event code: 3008
    Event message: A configuration error has occurred.
    Event time: 11/14/2019 9:23:06 AM
    Event time (UTC): 11/14/2019 5:23:06 PM
    Event ID: f12ba6f39fc94db99d7bac9d7321d722
    Event sequence: 61
    Event occurrence: 11
    Event detail code: 0

    Application information:
    Application domain: /LM/W3SVC/13/ROOT-1-132182111916057835
    Trust level: Full
    Application Virtual Path: /
    Application Path: \\*UNCPATH*
    Machine name: 

    Process information:
    Process ID: 108
    Process name: w3wp.exe
    Account name: -

    Exception information:
    Exception type: ConfigurationErrorsException
    Exception message: An error occurred loading a configuration file: Failed to start monitoring changes to '\\*UNCPATH*\web.config'. (\\*UNCPATH*\web.config)
    at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
    at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
    at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)
    at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
    at System.Web.Configuration.RuntimeConfig.get_Identity()
    at System.Web.HttpContext.SetImpersonationEnabled()
    at System.Web.HttpApplication.AssignContext(HttpContext context)
    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)

    Failed to start monitoring changes to '\\*UNCPATH*\web.config'.
    at System.Web.DirectoryMonitor.AddFileMonitor(String file)
    at System.Web.DirectoryMonitor.StartMonitoringFileWithAssert(String file, FileChangeEventHandler callback, String alias)
    at System.Web.FileChangesMonitor.StartMonitoringFile(String alias, FileChangeEventHandler callback)
    at System.Web.Configuration.WebConfigurationHost.StartMonitoringStreamForChanges(String streamName, StreamChangeCallback callback)
    at System.Configuration.BaseConfigurationRecord.MonitorStream(String configKey, String configSource, String streamname)
    at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()

    Request information:
    Request URL: http://*URL*/415U9002/
    Request path: /*PATH*/415U9002/
    User host address: -
    User:
    Is authenticated: False
    Authentication Type:
    Thread account name: IIS APPPOOL\*ACC*

    Thread information:
    Thread ID: 48
    Thread account name: IIS APPPOOL\*ACC*
    Is impersonating: False
    Stack trace: at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
    at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
    at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)
    at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
    at System.Web.Configuration.RuntimeConfig.get_Identity()
    at System.Web.HttpContext.SetImpersonationEnabled()
    at System.Web.HttpApplication.AssignContext(HttpContext context)
    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)


    I'm no IIS pro, so any help is greatly appreciated.

    Thanks

  • Re: Event ID 1310 - Failed to start monitoring changes to '\\*MYUNCPATH*\web.config'

    Nov 15, 2019 08:29 AM|Yuk Ding|LINK

    Hi JCGAFC,

    I checked some source and the error looks jut like an file not found or path not found error. 

    What error message did you see when you trace the IO condition with process monitor? Did you see access denied in w3wp.exe?

    https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

    Besides, Have you set correct identity for authenticated user? Because I notice that you are using IIS APPPOOL\*ACC* as APPPOOL identity.

    When we need to use application pool, we will create a dedicated local user on both server with same name or use a domain account. Then set application pool identity to use that account and set anonymous authentication to use application pool identity.

    Best Regards,

    Jokies Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.