[介绍]
GoDaddy主机客户端显示详细错误信息代码
|
|
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> |
|
|
|
|
|
|
|
|
|
|
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.
等于没报错 |
|
|
|
|
|
|
|
|