当我设置customErrors mode=";关「;在azure中,我没有获得错误信息
我得到这个信息: “由于发生内部服务器错误,无法显示页面。” 我的web.config当我设置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)" /> 这就解决了问题 &
<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>
太棒了!你能把它标记为一个答案,让其他人从中受益吗?谢谢