我的应用发布到服务器后,几分钟后就登陆不了,出现如下的错误
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>
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>
解决方案 »
- 有个开源项目,如何做成DLL?
- 谁能帮我写一个关于在C#中使用Hibernate思想的小断源码
- 求教:C#中如何对文本文件的数据进行修改操作
- 还是关于SOCKET的问题,我实在是搞不定了。。
- .net 比较好用的cms有哪些?请各位推荐一下。
- c++中的结构体中存在字符数组,修改成C#中的结构体,怎么定义?
- 请问文本框失去焦点触发什么事件?
- 怎样取得一台计算机上所有的共享文件夹分别对谁共享?分别开了什么权限?
- c# 利用socket和directX实现局域网语音通信
- 如何在DataGrid中使用计算列?
- DevExpress.XtraGrid.Views.BandedGrid应用问题?
- 数据源操作?
<customErrors mode="Off"/>
设置为Off看具体的错误信息
看详细错误信息