分享

写回答

发帖

[介绍] GoDaddy主机客户端显示详细错误信息代码

GoDaddy GoDaddy 1741 人阅读 | 1 人回复

发表于 2010-10-28 15:03:54 | 显示全部楼层 |阅读模式

GoDaddy Windows主机用IIS 6的,在web.config里写如下代码:
<configuration>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>


GoDaddy Windows主机用IIS 7的,在web.config里写如下代码:
<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

回答|共 1 个

maowenjie

发表于 2010-11-6 23:33:26 | 显示全部楼层

IIS7 试了下 不行
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

等于没报错
您需要登录后才可以回帖 登录 | 注册

本版积分规则