.net “由于发生内部服务器错误,无法显示该页,"”

ubbxdtey  于 2023-11-20  发布在  .NET
关注(0)|答案(1)|浏览(116)

我正在将一个.Net解决方案部署到Azure,当我尝试运行页面时出现上述错误。
我读到System.Web必须精简到这个。这就是我所做的。

  1. <compilation debug="true" targetFramework="4.7.2" />
  2. <httpRuntime targetFramework="4.7.2" />

字符串
该解决方案在本地工作。Application Insights没有记录任何错误。是否有错误日志?我不知道这可能是什么错误。它可能是任何东西。

cfh9epnr

cfh9epnr1#

尝试在web.config中将自定义错误设置为off。

  1. <system.web>
  2. <customErrors mode="Off">
  3. </customErrors>
  4. </system.web>

字符串
参考:customErrors Element (ASP.NET Settings Schema)
当你解决了这个问题时,不要忘记重新打开它。

相关问题