分享

写回答

发帖

[提问] windown主机安装asp.net出错

GoDaddy GoDaddy 533 人阅读 | 1 人回复

发表于 2009-9-2 09:35:04 | 显示全部楼层 |阅读模式

我上传好程序以后报错如下:
Server Error in '/gzgd' 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>


请问这个是什么问题?如何解决?

回答|共 1 个

add.c

发表于 2009-9-2 09:59:37 | 显示全部楼层

建web.config文件,内容如下
<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
然后传到空间根目录
您需要登录后才可以回帖 登录 | 注册

本版积分规则