Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am yogesh and when i am running my website iam getting an error at irregular period of time at the line of code where i used datareader i;e.... at the following
line..
C#
SqlDataReader drtot = chktot.ExecuteReader();

Error is :
"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."
Please suggest me the solution.
Posted

Make sure the server is up and running and that you can connect to the database.
Then make sure the network is up as well.

Maybe your query is taking too long to execute or is returning too large a record set.
Try refining your query.

Not recommended - Try increasing the timeout (before debugging purposes).
 
Share this answer
 
v2
Comments
Uday P.Singh 26-Aug-11 14:07pm    
good answer my 5!
Abhinav S 26-Aug-11 14:08pm    
Thanks.
To fix it,check this out:

http://msdn.microsoft.com/en-us/library/ms190181.aspx[^]

hope it helps :)
 
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