当我在 azure 中设置 customErrors mode="Off" 时,我没有得到错误信息
When I set customErrors mode="Off" in azure I do not get the error information
我收到这条消息:
"The page cannot be displayed because an internal server error has occurred."
我的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>
我收到这条消息:
"The page cannot be displayed because an internal server error has occurred."
我的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>