Paw*_*wel 9 c# webforms azure azure-web-app-service
我的asp.net web表单网站上的azure app服务面临着奇怪的问题.
得到例外:
ConfigurationErrorsExceptionSystem.Configuration.BaseConfigurationRecord in EvaluateOne
The configuration file has been changed by another program. (D:\home\site\wwwroot\web.config)
ConfigurationErrorsException: The configuration file has been changed by another program. (D:\home\site\wwwroot\web.config)
Module "System.Configuration.BaseConfigurationRecord", line 72, col 0, in EvaluateOne
System.Object EvaluateOne(System.String[], System.Configuration.SectionInput, Boolean, System.Configuration.FactoryRecord, System.Configuration.SectionRecord, System.Object)
Module "System.Configuration.BaseConfigurationRecord", line 515, col 0, in Evaluate
Boolean Evaluate(System.Configuration.FactoryRecord, System.Configuration.SectionRecord, System.Object, Boolean, Boolean, System.Object ByRef, System.Object ByRef)
Module "System.Configuration.BaseConfigurationRecord", line 666, col 0, in GetSectionRecursive
Void GetSectionRecursive(System.String, Boolean, Boolean, Boolean, Boolean, System.Object ByRef, System.Object ByRef)
Module "System.Configuration.BaseConfigurationRecord", line 0, col 0, in GetSection
System.Object GetSection(System.String)
Module "System.Web.Configuration.RuntimeConfig", line 0, col 0, in GetSectionObject
System.Object GetSectionObject(System.String)
Module "System.Web.Configuration.RuntimeConfig", line 19, col 0, in GetSection
System.Object GetSection(System.String, System.Type, ResultsIndex)
Module "System.Web.Configuration.RuntimeConfig", line 0, col 0, in get_Authorization
System.Web.Configuration.AuthorizationSection get_Authorization()
Module "System.Web.Security.UrlAuthorizationModule", line 153, col 0, in OnEnter
Void OnEnter(System.Object, System.EventArgs)
Module "System.Web.HttpApplication+SyncEventExecutionStep", line 65, col 0, in System.Web.HttpApplication.IExecutionStep.Execute
Void System.Web.HttpApplication.IExecutionStep.Execute()
Module "System.Web.HttpApplication", line 21, col 0, in ExecuteStep
System.Exception ExecuteStep(IExecutionStep, Boolean ByRef)
Run Code Online (Sandbox Code Playgroud)
应用程序部署10-15分钟后抛出带有异常的YSOD.App没有重新启动它只是显示YSOD.
但没有人编辑过web.config.修改日期没有改变,内容也没有改变 - 与win合并和文件相比是相同的(部署之后一个直接抛出异常).
手动保存web.config(没有任何更改)文件或重新部署应用程序问题后,将在接下来的10-15分钟内解决.
@ EDIT1
也尝试过:
@ EDIT2
我们在6.6.2017的日志中得到了第一个错误,并且它不时发生(我说每周一次.但它是测试环境,流量非常低)直到两天前(27.06.2017).然后它爆炸并且一直发生.
@ EDIT3
我从符号服务器下载了源文件并对其进行了调试.
从方法GetStreamVersion返回的当前版本很奇怪.上次写入时间是创建时间前10分钟.(也许它在应用程序崩溃之前以某种方式与10-15连接?)
与当前版本进行比较的Last版本是正常的.在上次写作之前创建.
不知道为什么修改创建时间.我用powershell在kudu上仔细检查了它,一切似乎都没问题(值与lastVersion中的值相同).
当前版本:
lastVersion:
使用kudu为web.config采取的时间:
Jer*_*lor 13
收到Azure团队的回复:
设置WEBSITE_DYNAMIC_CACHE_FCN_MODE = 1首先尝试,根据问题行为,它应该解决问题.如果此设置不愈合,我们需要去WEBSITE_DYNAMIC_CACHE = 0
边注:
设置WEBSITE_DYNAMIC_CACHE_FCN_MODE = 1不应导致性能影响.如果网站内容大小很大,设置WEBSITE_DYNAMIC_CACHE = 0可能会在初始加载期间略微影响性能.
他们仍然在调查这个问题突然发生的原因.
归档时间: |
|
查看次数: |
1298 次 |
最近记录: |