您的位置:首页 > 编程语言 > ASP

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

2009-12-23 22:58 501 查看
果你要在一个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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐