Detailed error message with web.config

瘦欲@ 提交于 2020-07-18 21:08:05

问题


On hosting my website on goddady plesk server and when there an error with one of my pages it seems not to display in detail though i have a web.config file in my root folder. I don't know if maybe there's a problem with my web.config. the only tell it tells me is "There is a problem with the resource you are trying to access"

<configuration>
    <system.webServer>

        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

回答1:


This works on Fasthosts (UK) shared hosting:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <httpErrors errorMode="Detailed" />
  </system.webServer>
</configuration>

It tends to give me the detailed errors that we need for Classic ASP development. Remember to turn that off when the site goes live.



来源:https://stackoverflow.com/questions/24384244/detailed-error-message-with-web-config

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