分享

写回答

发帖

[提问] 打开网站出错,怎么回事。

GoDaddy GoDaddy 740 人阅读 | 2 人回复

发表于 2009-11-20 16:11:20 | 显示全部楼层 |阅读模式

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

有时打开网站会显示这个,怎么回事了

回答|共 2 个

cucu

发表于 2009-11-20 16:20:02 | 显示全部楼层

asp.net没有设置好,或者是数据库倒了

add.c

发表于 2009-11-20 16:20:32 | 显示全部楼层

新建web.config文件
写上下面内容,传到空间看看什么错误
<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
您需要登录后才可以回帖 登录 | 注册

本版积分规则