读书人

Runtime Error 有关问题 求大神

发布时间: 2013-06-25 23:45:41 作者: rapoo

Runtime Error 问题 求大神啊

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>

重启完IIS或者重新注册freamwork后暂时可以,可过一会又报这个错误了。很频繁啊。大神有解决办法么?谢谢了。因为是有时候行有时候不行,所以我感觉程序该没啥问题。 ?Runtime?Error
[解决办法]
<customErrors mode="Off"/>


你把customErrors mode设成off 看看报错信息是啥?
[解决办法]
<customErrors mode="Off"/>
改成
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

再看看有什么错没?
[解决办法]

引用:
Quote: 引用:

跟外网有什么关系?

你把webconfig的<customErrors mode="Off"/> 你把customErrors mode设成off
这样就能显示具体的错误了


进不去服务器 哥哥。我知道你说的啥意思。


这真没法分析啥错了
------解决方案--------------------


引用:
Quote: 引用:

<customErrors mode="Off"/>
改成
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

再看看有什么错没?


现在是能看到错误了,但是他不是一直报错啊,错误也不定,好几天都没事好好的,突然就部分报错了,然后重启iis又没事了。。。。。。。。。我疯了要


做网站一定要专门记录错误日志。

[解决办法]
引用:
http://jwc.cnu.edu.cn/


我这里访问没有报错啊
[解决办法]
按你的说法应该和被攻击或网站压力太大有关,主要还是看错误日志
[解决办法]
服务器的事件日志也可以看到IIS的具体异常信息的
也有可能是一个IIS用了几个Framework版本

读书人网 >asp.net

热点推荐