当我在azure中设置customErrors mode =“Off”时我不会收到错误信息

问题描述:

我收到此消息“页面无法显示,因为发生了内部服务器错误。”当我在azure中设置customErrors mode =“Off”时我不会收到错误信息

我的web.config

<customErrors mode="Off"/> 

我Web.Debug.config/Web.Release.config

<customErrors mode="Off" xdt:Transform="Replace"/> 
    <compilation xdt:Transform="RemoveAttributes(debug)" /> 

我非常感谢所有帮助

这个解决问题

<system.webServer> 
     <httpErrors errorMode="Detailed" /> 
     <asp scriptErrorSentToBrowser="true"/> 
    </system.webServer> 
+1

太棒了!你能将它标记为答案,以便其他人可以从中受益吗?谢谢! –