Asp.net网站获取请求超时 - 线程被中止 [英] Asp.net web site getting request timed out - thread was being aborted

查看:186
本文介绍了Asp.net网站获取请求超时 - 线程被中止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站在处理大量验证任务或任何大型处理任务时遇到错误



My Web site getting below error while processing huge task of validation or any big processing task

8/4/2016 7:46:42 AM:Error while processing [ xyz task ]: Thread was being aborted.
8/4/2016 7:46:42 AM:Request timed out.





仍然我错过了其他正常任务的东西,它工作正常,我没有收到错误。



同样的错误是在try catch块中没有处理它被记录来自global.asax的Application_Error。



我尝试过:



i在web.config中设置了以下值





Still i am missing something as for other normal task it is working fine and i am not getting error.

Also the same error is not handle in try catch block it is logged from Application_Error of global.asax.

What I have tried:

i have set below value in web.config

<httpRuntime enableVersionHeader="false" executionTimeout="300" />

推荐答案

第一步需要检查超时异常的来源,解决它。

第二步在IIS中设置增加执行时间将其设置为m你需要申请。
1st step need to check from where timeout exception come out , resolve it.
2nd step there is setting in IIS to increase execution Time set it as much your application required.


这篇关于Asp.net网站获取请求超时 - 线程被中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆