分享

写回答

发帖

[提问] godaddy 客服写的回复,请高手出面!!我该如何操作

GoDaddy GoDaddy 841 人阅读 | 1 人回复

发表于 2011-1-3 12:38:36 | 显示全部楼层 |阅读模式

This issue is a result of a scripting issue, which can be viewed by using a custom error message.  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>

回答|共 1 个

杰奇

发表于 2011-1-3 13:08:19 | 显示全部楼层

呵呵,我就是早上在群里给你翻译那个
RAKSmart
您需要登录后才可以回帖 登录 | 注册

本版积分规则