473,395 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

General Network Error

I get the following exception when doing a simple
statement like SELECT * FROM MyTable, I am using SQL
Server 2000 and ADO.Net as the client using framework
1.1, I get this error periodiodically.

Please help,

Exception message:

iE.AM.Runtime.AMSQLException: Unable to perform SqlCmd ---
System.Data.SqlClient.SqlException: General network

error. Check your network documentation.
at System.Data.SqlClient.SqlConnection.OnError
(SqlException exception, TdsParserState state)
at System.Data.SqlClient.SqlInternalConnection.OnErro r
(SqlException exception, TdsParserState state)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning()
at System.Data.SqlClient.TdsParser.ReadNetlib(Int32
bytesExpected)
at System.Data.SqlClient.TdsParser.ReadBuffer()
at System.Data.SqlClient.TdsParser.ReadByteArray(Byte
[] buff, Int32 offset, Int32 len)
at System.Data.SqlClient.TdsParser.ReadDouble()
at System.Data.SqlClient.TdsParser.ReadValue
(_SqlMetaData md, Int32 length)
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.GetValues(Obje ct
[] values)
at
iE.AM.Sql.Utilities.SqlBase.ProcessSqlCurOpenOpera tion
(Object param)
--- End of inner exception stack trace ---: General
network error. Check your network documentation.: at
System.Data.SqlClient.SqlConnection.OnError(SqlExc eption
exception, TdsParserState state)
at System.Data.SqlClient.SqlInternalConnection.OnErro r
(SqlException exception, TdsParserState state)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning()
at System.Data.SqlClient.TdsParser.ReadNetlib(Int32
bytesExpected)
at System.Data.SqlClient.TdsParser.ReadBuffer()
at System.Data.SqlClient.TdsParser.ReadByteArray(Byte
[] buff, Int32 offset, Int32 len)
at System.Data.SqlClient.TdsParser.ReadDouble()
at System.Data.SqlClient.TdsParser.ReadValue
(_SqlMetaData md, Int32 length)
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.GetValues(Obje ct
[] values)
at
iE.AM.Sql.Utilities.SqlBase.ProcessSqlCurOpenOpera tion
(Object param)
Nov 16 '05 #1
3 5367
Buddy,

Periodically? Is it possible that the server could be offline (for some
reason or another)? I assume that you are not getting this because of an
authentication issue (i.e. you are in ASP.NET running under the ASPNET
local user account).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"BuddyWork" <an*******@discussions.microsoft.com> wrote in message
news:c7****************************@phx.gbl...
I get the following exception when doing a simple
statement like SELECT * FROM MyTable, I am using SQL
Server 2000 and ADO.Net as the client using framework
1.1, I get this error periodiodically.

Please help,

Exception message:

iE.AM.Runtime.AMSQLException: Unable to perform SqlCmd ---
System.Data.SqlClient.SqlException: General network

error. Check your network documentation.
at System.Data.SqlClient.SqlConnection.OnError
(SqlException exception, TdsParserState state)
at System.Data.SqlClient.SqlInternalConnection.OnErro r
(SqlException exception, TdsParserState state)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning()
at System.Data.SqlClient.TdsParser.ReadNetlib(Int32
bytesExpected)
at System.Data.SqlClient.TdsParser.ReadBuffer()
at System.Data.SqlClient.TdsParser.ReadByteArray(Byte
[] buff, Int32 offset, Int32 len)
at System.Data.SqlClient.TdsParser.ReadDouble()
at System.Data.SqlClient.TdsParser.ReadValue
(_SqlMetaData md, Int32 length)
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.GetValues(Obje ct
[] values)
at
iE.AM.Sql.Utilities.SqlBase.ProcessSqlCurOpenOpera tion
(Object param)
--- End of inner exception stack trace ---: General
network error. Check your network documentation.: at
System.Data.SqlClient.SqlConnection.OnError(SqlExc eption
exception, TdsParserState state)
at System.Data.SqlClient.SqlInternalConnection.OnErro r
(SqlException exception, TdsParserState state)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning()
at System.Data.SqlClient.TdsParser.ReadNetlib(Int32
bytesExpected)
at System.Data.SqlClient.TdsParser.ReadBuffer()
at System.Data.SqlClient.TdsParser.ReadByteArray(Byte
[] buff, Int32 offset, Int32 len)
at System.Data.SqlClient.TdsParser.ReadDouble()
at System.Data.SqlClient.TdsParser.ReadValue
(_SqlMetaData md, Int32 length)
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.GetValues(Obje ct
[] values)
at
iE.AM.Sql.Utilities.SqlBase.ProcessSqlCurOpenOpera tion
(Object param)

Nov 16 '05 #2
Thanks for the reply,

The server is not offline because we can get this to work
from another PC connecting to the SQL Server and it works
without a problem. But for some reason on this box it
just gives this error. The request does work sometimes
and then it fails so I cannot see why the authentication
would be an issue.

Thanks,
-----Original Message-----
Buddy,

Periodically? Is it possible that the server could be offline (for somereason or another)? I assume that you are not getting this because of anauthentication issue (i.e. you are in ASP.NET running under the ASPNETlocal user account).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"BuddyWork" <an*******@discussions.microsoft.com> wrote in messagenews:c7****************************@phx.gbl...
I get the following exception when doing a simple
statement like SELECT * FROM MyTable, I am using SQL
Server 2000 and ADO.Net as the client using framework
1.1, I get this error periodiodically.

Please help,

Exception message:

iE.AM.Runtime.AMSQLException: Unable to perform SqlCmd ---
> System.Data.SqlClient.SqlException: General network

error. Check your network documentation.
at System.Data.SqlClient.SqlConnection.OnError
(SqlException exception, TdsParserState state)
at System.Data.SqlClient.SqlInternalConnection.OnErro r (SqlException exception, TdsParserState state)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning() at System.Data.SqlClient.TdsParser.ReadNetlib(Int32
bytesExpected)
at System.Data.SqlClient.TdsParser.ReadBuffer()
at System.Data.SqlClient.TdsParser.ReadByteArray (Byte [] buff, Int32 offset, Int32 len)
at System.Data.SqlClient.TdsParser.ReadDouble()
at System.Data.SqlClient.TdsParser.ReadValue
(_SqlMetaData md, Int32 length)
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.GetValues (Object [] values)
at
iE.AM.Sql.Utilities.SqlBase.ProcessSqlCurOpenOpera tion
(Object param)
--- End of inner exception stack trace ---: General
network error. Check your network documentation.: at System.Data.SqlClient.SqlConnection.OnError (SqlException exception, TdsParserState state)
at System.Data.SqlClient.SqlInternalConnection.OnErro r (SqlException exception, TdsParserState state)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning() at System.Data.SqlClient.TdsParser.ReadNetlib(Int32
bytesExpected)
at System.Data.SqlClient.TdsParser.ReadBuffer()
at System.Data.SqlClient.TdsParser.ReadByteArray (Byte [] buff, Int32 offset, Int32 len)
at System.Data.SqlClient.TdsParser.ReadDouble()
at System.Data.SqlClient.TdsParser.ReadValue
(_SqlMetaData md, Int32 length)
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.GetValues (Object [] values)
at
iE.AM.Sql.Utilities.SqlBase.ProcessSqlCurOpenOpera tion
(Object param)

.

Nov 16 '05 #3
"BuddyWork" <an*******@discussions.microsoft.com> wrote in message
news:c7****************************@phx.gbl...
I get the following exception when doing a simple
statement like SELECT * FROM MyTable, I am using SQL
Server 2000 and ADO.Net as the client using framework
1.1, I get this error periodiodically.


I've had this problem for years with the SQL Server managed provider.
It'll work for a while and then every now and then (maybe once out of every
100 queries) it'll throw this "General Network Error" exception. I remember
doing a tremendous amount of research on this problem a while back and I was
able to find a few other people that were experiencing the same thing. In
each case, the solution was the same: Use the OLEDB managed provider instead
of the SQL Server managed provider.

This bug in the SQL Server managed provider seems to affect very few
people, however. This exception that you're seeing is usually the result of
a network problem -- perhaps something as simple as a bad cable. I've also
seen the exception be thrown (intermittently) when the connection string
uses a hostname instead of an IP address and the hostname is resolved using
a windows DNS server. In this case, changing your connection string to use
an IP address instead of a hostname will solve the problem. Again, this is a
VERY rare problem which may not apply to you.

I really do hate intermittant errors like this though...frigging
annoying.

David
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: stanley j Mroczek | last post by:
Every thing is on one machine, Programs and sql. Sql is up and running(can test with query analyzer). No changes where made! This was working fine. How do you track this error? What network...
2
by: SteveS | last post by:
Hello all. This problem is stumping me.... I run a page called "default.aspx". For some reason when I execute this page, I get the error below. It seems to run through the entire code behind...
7
by: stan | last post by:
I have .net 2003 and SQL 2000 setup on one system. All I have is one computer (no network). I am able to get to the internet that works. I can run SQL Query Analyzer and it works. The program was...
0
by: David Sworder | last post by:
Hi there, I am using the SQL managed provider in ADO.NET to fill a dataset with a large number of records. I periodically get an exception with the description "General Network Error" when trying...
11
by: galina betz | last post by:
Please help! Getting this error intermittently: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not...
7
by: Joe Ross | last post by:
I've been working with Microsoft support for over 3 weeks now on an intermittent General Network Error we're seeing in our production environment between our ASP.NET application and SQL Server...
3
by: Yong | last post by:
I get a general network error when I try to make asynchronously call ExecuteNonQuery on long sql statements that run in parallel. Here is the background info on what I'm trying to accomplish: I...
0
by: Yong | last post by:
I'm not getting any reply to my previous thread so I'm stating a new one. I get a General Network Error due to my SqlCommand object not having a big enough CommandTimeout to complete very long...
0
by: johnkamal | last post by:
Hi, Some times while opening a page, I am getting the following error message, Please help me to rectify the problem. Server Error in '/' Application. General network error. Check your...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.