How to increase executionTimeout for a long-running query?

后端 未结 6 1134
无人及你
无人及你 2020-11-27 16:44

In my application, one query takes 3 minutes to execute. I found that Default ExecutionTimeout value is 110 sec.I tried to change this to 500 (seconds) but

6条回答
  •  甜味超标
    2020-11-27 16:54

    You can set executionTimeout in web.config to support the longer execution time.

    executionTimeout specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET. MSDN

    
    

    This make execution timeout to five minutes.

    Optional Int32 attribute.

    Specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET.

    This time-out applies only if the debug attribute in the compilation element is False. Therefore, if the debug attribute is True, you do not have to set this attribute to a large value in order to avoid application shutdown while you are debugging. The default is 110 seconds, Reference.

提交回复
热议问题