R
Rob R. Ainscough
I have a .NET Windows application that works perfectly (no errors) when it
communicates with my SQL Server locally (LAN). The exact same application
when executed on another PC outside our LAN (via Broadband connection) will
start to generate the following error:
Description:
11: System.Data.SqlClient.SqlException: General network error. Check your
network documentation.
at System.Data.SqlClient.SqlDataReader.InternalClose(Boolean closeReader)
at System.Data.SqlClient.SqlDataReader.Close()
at System.Data.SqlClient.SqlConnection.CloseReader()
at System.Data.SqlClient.SqlConnection.Close()
The problem appears to be random yet consistant, meaning it will happen
consistantly but never at the same point. And then sometimes it will clear
itself up and then continue processing and sometimes not.
The ONLY variable in the equation is LAN vs. Broadband connection. LAN
connection to the SQL Server never generates any errors. Broadband
connection to the SQL Server will generate the above errors at random
intervals.
I've tried the following "guess work" solutions I found via Google search:
Pooling=False
Max Pool Size = 300
Connect Timeout=90
Turn off Indexing Services
None of these resolve the problem. I've also checked and double checked my
code (even as far as putting a trace on the code) to make sure any data
readers are closed -- the only common thing I've noted is that a data reader
is always somehow involved -- it is as if the data reader (ADO.NET) requires
a high speed connection (aka LAN) to function reliably. If the data reader
is placed on a low speed connection it becomes unreliable/unstable.
http://weblogs.asp.net/ssadasivuni/archive/2003/12/06/41705.aspx
At least I know I'm not alone in this problem.
Rob.
communicates with my SQL Server locally (LAN). The exact same application
when executed on another PC outside our LAN (via Broadband connection) will
start to generate the following error:
Description:
11: System.Data.SqlClient.SqlException: General network error. Check your
network documentation.
at System.Data.SqlClient.SqlDataReader.InternalClose(Boolean closeReader)
at System.Data.SqlClient.SqlDataReader.Close()
at System.Data.SqlClient.SqlConnection.CloseReader()
at System.Data.SqlClient.SqlConnection.Close()
The problem appears to be random yet consistant, meaning it will happen
consistantly but never at the same point. And then sometimes it will clear
itself up and then continue processing and sometimes not.
The ONLY variable in the equation is LAN vs. Broadband connection. LAN
connection to the SQL Server never generates any errors. Broadband
connection to the SQL Server will generate the above errors at random
intervals.
I've tried the following "guess work" solutions I found via Google search:
Pooling=False
Max Pool Size = 300
Connect Timeout=90
Turn off Indexing Services
None of these resolve the problem. I've also checked and double checked my
code (even as far as putting a trace on the code) to make sure any data
readers are closed -- the only common thing I've noted is that a data reader
is always somehow involved -- it is as if the data reader (ADO.NET) requires
a high speed connection (aka LAN) to function reliably. If the data reader
is placed on a low speed connection it becomes unreliable/unstable.
http://weblogs.asp.net/ssadasivuni/archive/2003/12/06/41705.aspx
At least I know I'm not alone in this problem.
Rob.