Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

Can anybody tell me how to supress connecton timeout error


Regards
NirmalaSaravanan
Posted

hi,

there are multiple reason for timeout error,
so you just check through debugging,
if there are one of query whose execution time is so long than server responding time, so you just find out this,and this is a reason then you just optimize your query for resolving session timeout error,


good luck
 
Share this answer
 
Why do you want to suppress it? It should be handled.

In order to keep a track of them, just put the code related to timeout in try-catch block.
C#
try
{
   //Probable Connection timeout code
   //e.g.: Connect to DB code
   // Do your stuff
}
catch (Exception ex)
{
   // Log it
   // Or eat it!
}
 
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