I'm working on someone else's project that makes heavy use of tableAdapters. The site works but It regular adds an entry in the Event log :
"ExecuteReader requires an open and available Connection. The connection's current state is connecting. "
The site doesn't throw an exception though unless there is high traffic (5+ requests per second) the exception is the same, pointing to this line of code:
this.Adapter.Fill(dataTable);
Stack trace: at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command)
How can i stop this error? Thanks.
Turns out i was only getting half the picture, the error, when it would throw an error is:
"There is already an open DataReader associated with this Command which must be closed first."