Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当我设置customErrors mode=";关「;在azure中,我没有获得错误信息_Azure_Azure Web App Service_Custom Errors - Fatal编程技术网

当我设置customErrors mode=";关「;在azure中,我没有获得错误信息

当我设置customErrors mode=";关「;在azure中,我没有获得错误信息,azure,azure-web-app-service,custom-errors,Azure,Azure Web App Service,Custom Errors,我得到这个信息: “由于发生内部服务器错误,无法显示页面。” 我的web.config <customErrors mode="Off"/> my Web.Debug.config/Web.Release.config <customErrors mode="Off" xdt:Transform="Replace"/> <compilation xdt:Transform="RemoveAttributes(debug)" /> 这就解决了问题 &

我得到这个信息:

“由于发生内部服务器错误,无法显示页面。”

我的web.config

<customErrors mode="Off"/>

my 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>

太棒了!你能把它标记为一个答案,让其他人从中受益吗?谢谢