网站做好了,常会碰到网页打不开,会出现如下信息:
Server Error in '/' Application.
-------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application ...........
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" .......
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
出现这样的错误一般会在如下两种情况下出现:
1,登录入网站后,不做任何操纵,等一会儿就出会现.重新登录后又可以了.
2,网速很慢的时候,不过,刷新两次又好了,很不稳定!
目前,就我查阅一些资料后推断,第一种现象可能是session超时,但第二种情况就不太清楚,因为在网速慢的时候,别人asp.net网站也不曾出现我这种情况.(在网速好的情况下,是不会出现这种情况的,这应该能排除程序的问题吧)
在此请教一些有经验的大虾,能否给点意见!怎么解决最好...
谢谢....
Server Error in '/' Application.
-------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application ...........
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" .......
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
出现这样的错误一般会在如下两种情况下出现:
1,登录入网站后,不做任何操纵,等一会儿就出会现.重新登录后又可以了.
2,网速很慢的时候,不过,刷新两次又好了,很不稳定!
目前,就我查阅一些资料后推断,第一种现象可能是session超时,但第二种情况就不太清楚,因为在网速慢的时候,别人asp.net网站也不曾出现我这种情况.(在网速好的情况下,是不会出现这种情况的,这应该能排除程序的问题吧)
在此请教一些有经验的大虾,能否给点意见!怎么解决最好...
谢谢....
这个错误描述就是让你定义一个页面,作为出现错误时的跳转
把web.config 相应的部分改为
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
看看什么错误
设置为off,看看具体错误
以前是正常的,最近才出現。