Runtime Error 错误是什么原因造成的,请指点一下,谢谢
我的asp.net系统,有时会发生Runtime Error 错误,具体错误信息如下:
Server Error in '/ysptnew' 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>
请各位给指点一下,我的web服务器也是永不超时呀
问题点数:50、回复次数:3Top
1 楼luckysusan(海闊天空)回复于 2004-09-03 11:51:16 得分 30
把mode设置为Off
这样就可以看到具体错误提示了
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>Top
2 楼outspaceman(狮子洋)回复于 2004-09-03 12:57:37 得分 10
是啊,然后把错误再报上来看看Top
3 楼tnt8csdn2000(琥珀雨田)回复于 2004-09-03 13:07:27 得分 10
.net要是能把它的自定义错误页面搞得好看点就好了。这样子看起来很恐怖。Top




