web-config – web.config错误

web-config – web.config错误,第1张

概述VS 2015,.Net Framework 4.5.1,本地IISExpress和Azure Web App 尝试从以下位置跟踪自我修复配置设置:https://azure.microsoft.com/en-us/blog/auto-healing-windows-azure-web-sites/ 错误:元素’system.webServer’具有无效的子元素’monitoring’ 应用程序编 VS 2015,.Net Framework 4.5.1,本地IISExpress和Azure Web App

尝试从以下位置跟踪自我修复配置设置:https://azure.microsoft.com/en-us/blog/auto-healing-windows-azure-web-sites/

错误:元素’system.webServer’具有无效的子元素’monitoring’

应用程序编译但在运行时失败,无论是在VS2015中本地运行还是部署到azure Web应用程序时.

解决方法 我通过转换Web.Release.config文件解决了这个问题,例如:

<system.webServer><monitoring xdt:transform="Insert">    <triggers>        <statusCode>            <add statusCode="500" count="10" timeInterval="00:00:30" />        </statusCode>    </triggers></monitoring></system.webServer>
总结

以上是内存溢出为你收集整理的web-config – web.config错误全部内容,希望文章能够帮你解决web-config – web.config错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1056170.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-25
下一篇2022-05-25

发表评论

登录后才能评论

评论列表(0条)

    保存