闯天涯...路在何方?

不要被生活剥去你的理想、梦想、幻想。。。Rejoicing in hope,patient in tribulation.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

长时间执行ASP.NET导致错误“The Server Request timed out”错误

Posted on 2009-12-23 22:58  CharlesLi  阅读(1141)  评论(0)    收藏  举报
果你要在一个ASP.NET页面之上执行大数据的读取和显示,那么你就很可能接收到如下错误信息:

Server Error in '/' Application.
Request timed out.
Description: An unhandled exception occurred during the executionof the current web request. Please review the stack trace for moreinformation about the error and where it originated in thecode.
Exception Details: System.Web.HttpException: Request timedout.
Source Error: An unhandled exception was generated during theexecution of the current web request. Information regarding theorigin and location of the exception can be identified using theexception stack trace below.
Stack Trace: [HttpException (0x80004005): Request timedout.]

解决方法:

修改Web.Config或者Machine.Config文件中的配置即可!

<configuration>
<system.web>
<httpRuntime=20   executionTimeout="36000" />
</system.web>
</configuration>