当我在天蓝色中将customErrors模式设置为” 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

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>