分享

写回答

发帖

[提问] 请帮忙看一下是什么意思,不懂语.

GoDaddy GoDaddy 559 人阅读 | 2 人回复

发表于 2011-4-16 23:16:12 | 显示全部楼层 |阅读模式

Our support staff has responded to your request, details of which are described below:

Discussion Notes
Support Staff Response
Dear Bintengu,

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>







Please let us know if there is anything else we can assist you with.

Sincerely,

Laurel P.

回答|共 2 个

zcwamy

发表于 2011-4-17 01:09:13 | 显示全部楼层

说你的.net程序产生了一个错误,要解决这个错误,可以修改你的web.config文件,并指定一个自定义错误信息显示。自定义错误信息可以帮助您找到导致了问题的特定的代码。以下是例子,但不完整,不要直接替换原来的文件,建议先备份原来的文件。

lwbo1987

发表于 2011-4-18 09:56:57 | 显示全部楼层

你的网站出现了错误,让你通过web.config检查详细的错误信息
您需要登录后才可以回帖 登录 | 注册

本版积分规则