When I set customErrors mode=“Off” in azure I do not get the error information

一曲冷凌霜 提交于 2019-12-11 06:59:51

问题


I get this message:

"The page cannot be displayed because an internal server error has occurred."

my web.config

<customErrors mode="Off"/>

my Web.Debug.config/Web.Release.config

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

回答1:


this solve the problem

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


来源:https://stackoverflow.com/questions/43521260/when-i-set-customerrors-mode-off-in-azure-i-do-not-get-the-error-information

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!