Click here to Skip to main content
15,886,049 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
We are using 4 time outs in our application to keep it from throwing timeout error
1. Connection Timeout=6000
2. SqlCommandTimeOut = 6000
3. httpRuntime executiontimeout = 600000
4. SessionState Timeout = 1440

As you can see we have set pretty high time for each time out, we didnot anticipate the timeout error to popup. But unfortunately the "timeout expired or no response from server" is thrown. This happens when a particular SP executes. I have used the profiler to fetch the query and ran it directly in the sql server management studio, it took 3 min 44 secs to get the data and in the end did not even throw any error. But when the same is run from the website , the website is throwing error. Can you please suggest what went wrong.

Note:- The SP used is dynamic. I mean it contains a lot of dynamic sql.
Our application in written in ASP.NET.
Posted
Updated 14-Jul-15 20:10pm
v2

1 solution

Good day
You will have to use Asynchronous tasks to accomplish this.
It will wait for the process to complete before it exits the code


https://msdn.microsoft.com/en-us/library/hh191443.aspx[^]


Kind regards
Divan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900