分享

写回答

发帖

[提问] .net程序出错Server Error in '/' Application.!

GoDaddy GoDaddy 1390 人阅读 | 4 人回复

发表于 2010-6-2 02:22:51 | 显示全部楼层 |阅读模式

.net程序出错Server Error in '/' Application.!

我刚买的windows主机,我用的是iis7.0的,我的网站程序我在本地测试不会出错,但传到服务器上就出错了,

我想问这是整么回事?谁能帮帮我,谢谢!

提示内容如下:
Server Error in '/gzlifeng.com' 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>

[ 本帖最后由 loricy 于 2010-6-2 02:24 AM 编辑 ]

回答|共 4 个

gypworks526

发表于 2010-6-2 08:12:39 | 显示全部楼层

修改web.config
让他显示详细的错误信息
然后再看看。

piazini

发表于 2011-6-4 21:47:18 | 显示全部楼层

我也是报这个错!我也要知道!
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2011-6-7 09:53:43 | 显示全部楼层

回复 4# 的帖子

可能是信任等级问题,godaddy不支持安装
回复 支持 反对

使用道具 举报

kingsontsao

发表于 2011-6-7 11:14:33 | 显示全部楼层

应用程序在服务器上发生错误。安全原因什么的不支持安装
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则