分享

写回答

发帖

[提问] asp.net网站本机测试没问题,GD空间测试不行,求解决

GoDaddy GoDaddy 1475 人阅读 | 7 人回复

发表于 2011-4-2 06:15:31 | 显示全部楼层 |阅读模式

本机测试可以,上传到GD后就错误了,错误如下:
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>

回答|共 7 个

lwbo1987

发表于 2011-4-2 09:00:46 | 显示全部楼层

配置文件参数是否写正确了

qqoyeah.org

发表于 2011-4-2 12:56:53 | 显示全部楼层

GD空间是中级信任级别,你在本机是完全信任.你懂的,自己写的程序可以自己调试一下.我的网站也是asp.net程序,一切正常.http://www.yuedui5.com(注:生成的静态页面)

ioiai

发表于 2011-4-2 22:42:37 | 显示全部楼层

回复 3# 的帖子

那有什么解决办法么?没用过GD的asp.net的空间呢

ioiai

发表于 2011-4-2 23:01:12 | 显示全部楼层

回复 2# 的帖子

说的是不是数据库连接的配置文件?设置正确的

lwbo1987

发表于 2011-4-3 09:24:31 | 显示全部楼层

可能正如3楼说的,godaddy的信任等级是中等的,针对一些程序是运行不了的

zhongl28 该用户已被删除

发表于 2011-4-4 23:53:52 | 显示全部楼层

打开你的debug,看看什么问题,然后解决。

有时候linq也会导致错误,因为gd不支持3.5

微微百科

发表于 2011-4-5 10:39:48 | 显示全部楼层

联系官方。
您需要登录后才可以回帖 登录 | 注册

本版积分规则