【发布时间】:2017-06-30 13:15:31
【问题描述】:
过去 2 天,我一直困扰着我的 azure 网站应用程序,但有以下例外:
异常信息: 异常类型:ConfigurationErrorsException
异常消息:配置文件已被另一个程序更改。 (D:\home\site\wwwroot\web.config)
每隔 5 分钟 [左右] 定期出现一次,在应用重新启动后会正常运行一段时间,然后再次运行。
有没有办法调试导致配置文件更改的原因?我已经浏览了整个代码,但没有找到任何配置文件版本的参考
堆栈跟踪:
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)
【问题讨论】:
-
你检查过配置文件,异常前后?前后的配置文件是一样的吗?如果没有,发生了什么变化?
-
我现在做了...很难确定,因为在 azure 门户中,我还添加了应用程序洞察力来帮助我追踪问题。无论如何,不同的行是:
-
我很好奇
行,不确定它是由 Microsoft AI 添加的,还是应该受到指责的行。难道你不知道有什么可以添加那行吗?
标签: asp.net azure azure-web-app-service