1. Adjust your application’s run-time execution timeout parameter
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.
Note In the .NET Framework 1.0 and 1.1, the default is 90 seconds.
2. Set the Microsoft SQL Server Query timeout value if you are using Microsoft SQL Server or a command timeout in case of stored procedure
This property is the cumulative time-out (for all network packets that are read during the invocation of a method) for all network reads during command execution or processing of the results. A time-out can still occur after the first row is returned, and does not include user processing time, only network read time.