raksmart活动促销

分享

写回答

发帖

[提问] IX空间到底支持ASP.NET吗

国外虚拟主机 国外虚拟主机 2460 人阅读 | 5 人回复

发表于 2010-6-12 13:44:55 | 显示全部楼层 |阅读模式

我的asp.net网站上传上去后访问不了   

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>


我明明都设置正确拉

回答|共 5 个

gypworks526

发表于 2010-6-12 13:54:52 | 显示全部楼层

支持asp.net

你把web.config下放以下代码

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

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


看  一下,详细错误。。

qnmm3166

发表于 2010-6-12 14:01:51 | 显示全部楼层

我的WEB.CONFIG里本来就有这段代码的  打开还是老样子


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>

gypworks526

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

改成那个,显示详细错误。

你用的什么程序?

qnmm3166

发表于 2010-6-12 14:10:26 | 显示全部楼层

解决了   我的是asp.net2.0的    他里面默认是1.1的  我刚金ix控制面版里看到ASP.NET旁边有个edit我把他改成2.0现在貌似好了
RAKSmart

gypworks526

发表于 2010-6-12 14:11:44 | 显示全部楼层

回复 5# 的帖子

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

本版积分规则