Search code examples
c#.netweb-config

How to Set executionTimeout to infinite


How to Set executionTimeout to infinite.

Some time data on page is big new server takes time .Want to make flexible so that never get error after delay . Error :The wait Operation Time out


Solution

  • you can give it as below in web.config file :-

    <httpRuntime executionTimeout = "10000000000000"/> ////Value is in Second
    

    As documented in official site under executionTimeout section:-

    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