gpt4 book ai didi

web-config - web.config 错误

转载 作者:行者123 更新时间:2023-12-01 03:37:10 25 4
gpt4 key购买 nike

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 <system.webServer> 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33561959/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com