Home All Groups Group Topic Archive Search About

SQL Server ADO.Net error - General network error. Check your network documentation

Author
22 Apr 2006 1:42 PM
RJN
Hi

I'm getting the General Network error, though not consistently. Stack
trace is below. Any fix for this?

at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
TdsParserState state)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, TdsParserState state)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.ReadNetlib(Int32 bytesExpected)
   at System.Data.SqlClient.TdsParser.ReadBuffer()
   at System.Data.SqlClient.TdsParser.ReadByte()
   at System.Data.SqlClient.TdsParser.GetTokenLength(Byte token)
   at System.Data.SqlClient.TdsParser.ProcessColumnHeader(_SqlMetaData
col, Boolean& isNull)
   at System.Data.SqlClient.TdsParser.ProcessRow(_SqlMetaData[] columns,
Object[] buffer, Int32[] map, Boolean useSQLTypes)
   at System.Data.SqlClient.SqlDataReader.PrepareRecord(Int32 i)
   at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i)
   at System.Data.SqlClient.SqlDataReader.get_Item(String name)

Thanks



*** Sent via Developersdex http://www.developersdex.com ***

Author
24 Apr 2006 10:11 AM
MSMVP KenLin for VB.NET
Dear RJN,

Could you show us your code, it is impossible to view what is wrong by the
general execption message.


--
Hope this help and welcome to reply the testing result.

Regards
Ken Lin, Kam Hung
Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
MCP, MCP+I, MCDST, MCSA, MCSE(NT4 & win2k),
MCSE+I, MCDBA(SQL7 & SQL2K), MCSD(VB6 & .NET), MCAD(.NET)
Microsoft Community Star(Hong Kong & Taiwan)
Microsoft Most Valuable Professional(.NET since 2003)
MCT2004 & 2005


Show quoteHide quote
"RJN" <r**@yahoo.com> wrote in message
news:ef$LaKhZGHA.3832@TK2MSFTNGP04.phx.gbl...
>
>
> Hi
>
> I'm getting the General Network error, though not consistently. Stack
> trace is below. Any fix for this?
>
> at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
> TdsParserState state)
>    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
> exception, TdsParserState state)
>    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
>    at System.Data.SqlClient.TdsParser.ReadNetlib(Int32 bytesExpected)
>    at System.Data.SqlClient.TdsParser.ReadBuffer()
>    at System.Data.SqlClient.TdsParser.ReadByte()
>    at System.Data.SqlClient.TdsParser.GetTokenLength(Byte token)
>    at System.Data.SqlClient.TdsParser.ProcessColumnHeader(_SqlMetaData
> col, Boolean& isNull)
>    at System.Data.SqlClient.TdsParser.ProcessRow(_SqlMetaData[] columns,
> Object[] buffer, Int32[] map, Boolean useSQLTypes)
>    at System.Data.SqlClient.SqlDataReader.PrepareRecord(Int32 i)
>    at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i)
>    at System.Data.SqlClient.SqlDataReader.get_Item(String name)
>
> Thanks
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***