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
1 | <customErrors mode="Off"/> |
我的Web.Debug.config / Web.Release.config
1 2 | <customErrors mode="Off" xdt:Transform="Replace"/> <compilation xdt:Transform="RemoveAttributes(debug)" /> |
这解决了问题
1 2 3 4 | <system.webServer> <httpErrors errorMode="Detailed" /> </system.webServer> |