分享

写回答

发帖

[提问] 500服务器内部错位

GoDaddy GoDaddy 900 人阅读 | 1 人回复

发表于 2011-3-7 13:05:37 | 显示全部楼层 |阅读模式

500服务器内部错位,我昨天发邮件问了GoDaddy美国主机,空间商回复如下
Discussion Notes
Support Staff Response
Dear Ping Wang,

Thank you for contacting Online Support.
By default, our Windows hosting servers display a generic error when any .NET application generates an exception. We display a generic error because the detailed error messages allow a malicious user to obtain sensitive information.

To troubleshoot the error, you can modify your web.config file and specify that a custom error message displays. A custom error message helps you to locate the specific code that is causing the issue.

CAUTION: The code samples we provide below do not constitute a complete web.config file. Do not replace your existing web.config file with the code we provide. Before changing your web.config file, we recommend creating a backup.

Displaying Custom Error Messages / Enabling Detailed Errors on IIS 7

Use the sample code below to display custom error messages on IIS 7:
<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>
我用的是新云管理系统,根本找不到他说的web.config文件,我的源码在国内空间正常,用godaddy windows主机就不能进后台,后台显示500错误,版主帮我看下,谢谢!网站 [urlhttp://87me.com/

[ 本帖最后由 zhongguo007 于 2011-3-7 01:33 PM 编辑 ]

回答|共 1 个

lwbo1987

发表于 2011-3-7 13:12:17 | 显示全部楼层

回复 1# 的帖子

配置文件是否错误,参看GoDaddy 500错误解决
您需要登录后才可以回帖 登录 | 注册

本版积分规则