0

部署网站时出现以下错误..

Server Error in '/domain/website' 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>

我尝试更改 customErrors mode="Off" 但没有喜悦 ..同样的错误重复...

此外,缺少 GenericErrorPage.htm 是否会导致错误?

有帮手吗?

4

2 回答 2

1

这可能是因为 web.config 中存在语法错误。您可以尝试用仅包含此内容的 web.config 替换当前的 web.config,看看会发生什么:

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
于 2009-11-27T10:12:44.740 回答
0

您是否在您的网站中使用双 web.config。例如。

如果您在 /domain 中使用一个 web.config,而在 /domain/website 中使用另一个 web.config。您需要将 /website 转换为应用程序。

但是,我建议您登录服务器并浏览页面,您将能够看到真正的问题。如果您不确定如何修复它。发布一次。我们或许可以帮助您。

于 2014-11-29T14:42:42.707 回答