异步操作超出页面超时时间

在园子博客程序实现异步化改造后,在日志中发现这样的错误提示:

System.Web.HttpUnhandledException (0x80004005):

引发类型为“System.Web.HttpUnhandledException”的异常。

System.TimeoutException: 异步操作超出页面超时时间。

对应的英文错误信息是:an asynchronous operation exceeded the page timeout.

这个错误说明了某个异步任务的执行时间超出了Page.AsyncTimeout,AsyncTimeout的默认值是45秒,可以通过web.config中的设置进行更改。

<system.web>
  <pages asyncTimeout="60">    
  </pages>
</system.web>

 

posted @ 2014-07-05 14:57  dudu  阅读(1933)  评论(1编辑  收藏  举报