4
votes

Last 2 days I've been plagued on my azure websites app with following exception:

Exception information: Exception type: ConfigurationErrorsException

Exception message: The configuration file has been changed by another program. (D:\home\site\wwwroot\web.config)

It comes periodically each 5 minutes [or so], after app restart it goes ok for a while then it does again.

Is there a way how to debug what's causing the config file change? I have went through the whole code and have not found any reference for config file edition

Stack trace:

at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
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_HttpRuntime()
at System.Web.HttpContext.EnsureTimeout()
at System.Web.HttpApplication.OnThreadEnterPrivate(Boolean setImpersonationContext)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
1
Have you checked the config file, before and after the exception? Is the config file before and after the same? If not, what have been changed? - Sean Stayns
I did now...it's hard to determine, because in azure portal I've also added application insights to help me track down the issue. Anyway, different lines are: <httpModules> <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" /> </httpModules> <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" /> <validation validateIntegratedModeConfiguration="false" /> - Bruno Laurinec
I'm nostly curious about the <validation validateIntegratedModeConfiguration="false" /> line, not sure if it was added by the Microsoft AI, or is the line that is to blame. Don't you by any chance know what could have added that line ? - Bruno Laurinec

1 Answers

6
votes

We have experienced the same problem but only at a specific time each day, starting three days ago.
It seems to be a global Azure issue, for more info take a look here