Dre*_*rew 6 asp.net web-config
我收到以下错误,系统认为正在修改web.config文件.实际文件显示自上次发布站点以来web.config文件修改日期没有任何更改.重定向到另一个页面时会出现此问题,但发生问题的页面将发生更改,并且访问该站点的任何用户都将存在错误.通过重新发布应用程序可以暂时缓解此问题,但在大约24小时内问题将会恢复.任何想法为什么它认为文件正在改变,即使它不是?
当前用户:NT AUTHORITY\NETWORK SERVICE目标站点:BaseConfigurationRecord.EvaluateOne错误:(System.Configuration.ConfigurationErrorsException)配置文件已被其他程序更改.(E:\ PEC \的web.config)
StackTrace:在System.Configuration.BaseConfigurationRecord.EvaluateOne(String []键,SectionInput输入,Boolean isTrusted,FactoryRecord factoryRecord,SectionRecord sectionRecord,Object parentResult)
at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord,SectionRecord sectionRecord,Object parentResult,Boolean System.Configuration.BaseConfigurationRecord.GetSection上的System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey,Boolean getLkg,Boolean checkPermission,Boolean getRuntimeObject,Boolean requestIsHere,Object&result,Object&resultRuntimeObject)中的getLkg,Boolean getRuntimeObject,Object&result,Object&resultRuntimeObject)( System.Web.Configuration.RuntimeConfig.get_Authorization()处的System.Web.Configuration.RuntimeConfig.GetSection(String sectionName,Type type,ResultsIndex index)处的System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)处的字符串configKey) System.Web.Security.UrlAut System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean&completedSynchronously)上的System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()中的horizationModule.OnEnter(Object source,EventArgs eventArgs)
我们发现此问题是由于 IIS 中的两个不同应用程序被配置为指向同一目录而引起的 - 我们有 www.mysite.com 和 Preview.mysite.com;我们通过使用克隆主站点来设置预览msdeploy,但没有意识到 www.mysite.com/foo 是一个独立的 IIS 虚拟应用程序 - 所以我们最终得到了 www.mysite.com/foo 和 Preview.mysite.com /foo 都指向同一个文件夹,并且“争斗”其中一个拥有配置文件等。
删除第二个虚拟应用程序解决了该问题。
| 归档时间: |
|
| 查看次数: |
5750 次 |
| 最近记录: |