分享

写回答

发帖

[提问] 求助:godaddy win主机上传.net程序显示错误,如何解决?

GoDaddy GoDaddy 2063 人阅读 | 5 人回复

发表于 2010-1-4 09:54:12 | 显示全部楼层 |阅读模式

求助:godaddy win主机上传.net程序显示错误,如何解决?
并且后面要加:index.aspx才能显示下面错误,不然就显示500错误.

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>

回答|共 5 个

add.c

发表于 2010-1-4 09:55:34 | 显示全部楼层

上传web.config看看详细的错误吧
代码如下
<!-- Web.Config Configuration File -->

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

斯文书生

发表于 2010-1-4 10:11:31 | 显示全部楼层

Godaddy对ASP.NET支持不是很好,大部分的ASP.NET程序在Godaddy上面都运行不起,尤其是国内的一些程序,根据经验,Godaddy不支持SQLITE数据库,不支持httpmodules等~而这些都是国内的程序喜欢用的!

yerencao

发表于 2010-1-5 17:59:36 | 显示全部楼层

不会吧,黑我,正准备买呢!

chinatyh

发表于 2010-1-5 18:25:33 | 显示全部楼层

...远程错误显示是要你自己设置的吧.Web.config

斯文书生

发表于 2010-1-5 19:04:50 | 显示全部楼层

GODADDY的WINDOWS主机,ASP.NET是运行在medium trust level下的,你购买前,最好问下你的ASP.NET程序的提供商或者作者,问问他们的程序能否在medium trust level下运行!
您需要登录后才可以回帖 登录 | 注册

本版积分规则