我正在将一个.Net解决方案部署到Azure,当我尝试运行页面时出现上述错误。我读到System.Web必须精简到这个。这就是我所做的。
<compilation debug="true" targetFramework="4.7.2" /><httpRuntime targetFramework="4.7.2" />
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2" />
字符串该解决方案在本地工作。Application Insights没有记录任何错误。是否有错误日志?我不知道这可能是什么错误。它可能是任何东西。
cfh9epnr1#
尝试在web.config中将自定义错误设置为off。
web.config
<system.web><customErrors mode="Off"></customErrors></system.web>
<system.web>
<customErrors mode="Off">
</customErrors>
</system.web>
字符串参考:customErrors Element (ASP.NET Settings Schema)当你解决了这个问题时,不要忘记重新打开它。
1条答案
按热度按时间cfh9epnr1#
尝试在
web.config
中将自定义错误设置为off。字符串
参考:customErrors Element (ASP.NET Settings Schema)
当你解决了这个问题时,不要忘记重新打开它。