“/domain/website”中的服务器错误应用

发布于 2024-08-13 06:08:17 字数 1472 浏览 6 评论 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 丢失,这是否导致错误?

有伸出援助之手吗?

I am getting following error while i deployed the website..

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>

I tried changing customErrors mode="Off" But no Joy ..same error repeats ...

Moreover , GenericErrorPage.htm is missing is this causing the error?

Any helping hands?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

Spring初心 2024-08-20 06:08:17

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

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

This is possibly because there is a syntax error in web.config. You could try replacing your current web.config with one that only contains this and see what happens:

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
赴月观长安 2024-08-20 06:08:17

您在网站中使用双 web.config 吗?例如。

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

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

Are you using dual web.config in your website. eg.

if you are using one web.config in /domain and another in /domain/website. You need to convert the /website as an application.

however, I would suggest you to log into the server and browse the page, you will be able to see the real issue. If you are unsure how to fix it. post it once. We might be able to help you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文