'/'应用程序中的服务器错误。运行时错误 [英] Server Error in '/' Application. Runtime Error

查看:83
本文介绍了'/'应用程序中的服务器错误。运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站在本地运行正常,但是当我发布它时,我收到此错误。我记得在大学里很多人都会收到这个错误!

请大家帮忙谢谢!

.Net框架工作是2.0

My site runs fine locally but when I publish it I get this error. I remember in college a lot of people would get this error!
Please any help would be greatly appreciated!
.Net Frame work is 2.0

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

推荐答案

看,一切都在错误本身中解释。你的应用程序中有一些错误,但不会从远程机器显示。



转到您的服务器并尝试从localhost访问您的应用程序,然后错误详细信息将显示在页面上,您将能够纠正您的实际问题
See, everything is explained in the error itself.There is some error in your application but tha will not display from remote machine.

Go to your server and try to access your application from localhost, then the error details will be displayed the page and you will be able to rectify your actual problem


您还可以检查服务器的事件日志是否有未公开的例外。
You can also check the event log of the server for unhanded exception.


< configuration>

< system.web>

< customerrors mode =Off>









使customErrors mode =On然后你会发现问题所在。应用程序中的任何位置都可能出错。
<configuration>
<system.web>
<customerrors mode="Off">




make the customErrors mode="On" then you will find what is the issue. there can be error anywhere in the application.


这篇关于'/'应用程序中的服务器错误。运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆