473,467 Members | 1,565 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

General network error

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 running fine. I did not make any
changes to the program or the stored procedures. But I am
now getting this error. I don't know what or where to
check for error.

General network error. Check your network documentation.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
General network error. Check your network documentation.

Source Error:
Line 214:
Line 215: ' Execute the command
Line 216: myConnection.Open()
Line 217: Dim result As SqlDataReader =
myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
Line 218:
Source File: C:\Market\Components\MaintenanceDB.vb
Line: 216

Stack Trace:
[SqlException: General network error. Check your network
documentation.]
System.Data.SqlClient.ConnectionPool.GetConnection
(Boolean& isInTransaction) +472

System.Data.SqlClient.SqlConnectionPoolManager.Get PooledCon
nection(SqlConnectionString options, Boolean&
isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
Market.MK.MaintenanceDB.GetworkQueues() in
C:\Market\Components\MaintenanceDB.vb:216
Market.maintDefault.Page_Load(Object sender, EventArgs
e) in C:\Market\maintDefault.aspx.vb:34
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +720

Nov 22 '05 #1
7 6417
Hi stan,

Does it happen at first anytime Open() is invoked?

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com

"stan" <sm******@si.rr.com> wrote in message
news:03****************************@phx.gbl...
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 running fine. I did not make any
changes to the program or the stored procedures. But I am
now getting this error. I don't know what or where to
check for error.

General network error. Check your network documentation.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
General network error. Check your network documentation.

Source Error:
Line 214:
Line 215: ' Execute the command
Line 216: myConnection.Open()
Line 217: Dim result As SqlDataReader =
myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
Line 218:
Source File: C:\Market\Components\MaintenanceDB.vb
Line: 216

Stack Trace:
[SqlException: General network error. Check your network
documentation.]
System.Data.SqlClient.ConnectionPool.GetConnection
(Boolean& isInTransaction) +472

System.Data.SqlClient.SqlConnectionPoolManager.Get PooledCon
nection(SqlConnectionString options, Boolean&
isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
Market.MK.MaintenanceDB.GetworkQueues() in
C:\Market\Components\MaintenanceDB.vb:216
Market.maintDefault.Page_Load(Object sender, EventArgs
e) in C:\Market\maintDefault.aspx.vb:34
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +720

Nov 22 '05 #2
yes
-----Original Message-----
Hi stan,

Does it happen at first anytime Open() is invoked?

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com

"stan" <sm******@si.rr.com> wrote in message
news:03****************************@phx.gbl...
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 running fine. I did not make any changes to the program or the stored procedures. But I am now getting this error. I don't know what or where to
check for error.

General network error. Check your network documentation.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
General network error. Check your network documentation.

Source Error:
Line 214:
Line 215: ' Execute the command
Line 216: myConnection.Open()
Line 217: Dim result As SqlDataReader =
myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
Line 218:
Source File: C:\Market\Components\MaintenanceDB.vb
Line: 216

Stack Trace:
[SqlException: General network error. Check your network documentation.]
System.Data.SqlClient.ConnectionPool.GetConnection
(Boolean& isInTransaction) +472

System.Data.SqlClient.SqlConnectionPoolManager.Get PooledCon nection(SqlConnectionString options, Boolean&
isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
Market.MK.MaintenanceDB.GetworkQueues() in
C:\Market\Components\MaintenanceDB.vb:216
Market.maintDefault.Page_Load(Object sender, EventArgs e) in C:\Market\maintDefault.aspx.vb:34
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +720

.

Nov 22 '05 #3
Hi,

Sounds like you are having trouble with either connection string or sql
client.
What does you connection string look like?
Can you try using the same connection string from a winform application?

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com

"stan" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
yes
-----Original Message-----
Hi stan,

Does it happen at first anytime Open() is invoked?

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com

"stan" <sm******@si.rr.com> wrote in message
news:03****************************@phx.gbl...
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 running fine. I did not make any changes to the program or the stored procedures. But I am now getting this error. I don't know what or where to
check for error.

General network error. Check your network documentation.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
General network error. Check your network documentation.

Source Error:
Line 214:
Line 215: ' Execute the command
Line 216: myConnection.Open()
Line 217: Dim result As SqlDataReader =
myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
Line 218:
Source File: C:\Market\Components\MaintenanceDB.vb
Line: 216

Stack Trace:
[SqlException: General network error. Check your network documentation.]
System.Data.SqlClient.ConnectionPool.GetConnection
(Boolean& isInTransaction) +472

System.Data.SqlClient.SqlConnectionPoolManager.Get PooledCon nection(SqlConnectionString options, Boolean&
isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
Market.MK.MaintenanceDB.GetworkQueues() in
C:\Market\Components\MaintenanceDB.vb:216
Market.maintDefault.Page_Load(Object sender, EventArgs e) in C:\Market\maintDefault.aspx.vb:34
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +720

.

Nov 22 '05 #4

I can run SQL Query Analyzer and it works. I don't
understand what you mean.please email at sm******@si.rr.com
-----Original Message-----
Hi,

Sounds like you are having trouble with either connection string or sqlclient.
What does you connection string look like?
Can you try using the same connection string from a winform application?
--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com

"stan" <an*******@discussions.microsoft.com> wrote in messagenews:00****************************@phx.gbl...
yes
>-----Original Message-----
>Hi stan,
>
>Does it happen at first anytime Open() is invoked?
>
>--
>Miha Markic - RightHand .NET consulting & development
>miha at rthand com
>www.rhand.com
>
>"stan" <sm******@si.rr.com> wrote in message
>news:03****************************@phx.gbl...
>> 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 running fine. I did not make
any
>> changes to the program or the stored procedures. But
I
am
>> now getting this error. I don't know what or where to
>> check for error.
>>
>> General network error. Check your network

documentation. >> Description: An unhandled exception occurred during the >> execution of the current web request. Please review the >> stack trace for more information about the error and

where
>> it originated in the code.
>>
>> Exception Details: System.Data.SqlClient.SqlException: >> General network error. Check your network documentation. >>
>> Source Error:
>>
>>
>> Line 214:
>> Line 215: ' Execute the command
>> Line 216: myConnection.Open()
>> Line 217: Dim result As SqlDataReader =
>> myCommand.ExecuteReader (CommandBehavior.CloseConnection) >> Line 218:
>>
>>
>> Source File: C:\Market\Components\MaintenanceDB.vb
>> Line: 216
>>
>> Stack Trace:
>>
>>
>> [SqlException: General network error. Check your

network
>> documentation.]
>> System.Data.SqlClient.ConnectionPool.GetConnection
>> (Boolean& isInTransaction) +472
>>
>>

System.Data.SqlClient.SqlConnectionPoolManager.Get PooledCon
>> nection(SqlConnectionString options, Boolean&
>> isInTransaction) +372
>> System.Data.SqlClient.SqlConnection.Open() +384
>> Market.MK.MaintenanceDB.GetworkQueues() in
>> C:\Market\Components\MaintenanceDB.vb:216
>> Market.maintDefault.Page_Load(Object sender,

EventArgs
>> e) in C:\Market\maintDefault.aspx.vb:34
>> System.Web.UI.Control.OnLoad(EventArgs e) +67
>> System.Web.UI.Control.LoadRecursive() +35
>> System.Web.UI.Page.ProcessRequestMain() +720
>>
>
>
>.
>

.

Nov 22 '05 #5
Hi All

I'm new to this groups business and also to ADO.NET so forgive me if
this is not relevant...

I'm getting the following error message:
System.Data.SqlClient.SqlException: General network error

I have identified the following scenario in which it can occur - I
can't explain it but I hope it will add to the discussion in some way.

1. Open an asp.net page that connects to the database/retrieves some
data/closes connection.
2. Open up Sql Query Analyser and identify the relevant spid for the
asp.net page.
3. Kill the spid identified above
4. Try to reload the .aspx page - The error above is reported.
5. If I try to reload the page again, everything works fine.

Interestingly, it seems that despite the fact that an error is
reported in step 4 above, a spid is created although the LastBatch
DateTime (sp_who2) is set to 01/01 00:00:00. Upon execution of step
5, a new spid is created - almost as if the pooling mechanism is
unaware of the existing spid.

Cheers
Chris
Nov 22 '05 #6
i don't know how to Open up Sql Query Analyser and
identify the relevant spid for the asp.net page?
stan
-----Original Message-----
Hi All

I'm new to this groups business and also to ADO.NET so forgive me ifthis is not relevant...

I'm getting the following error message:
System.Data.SqlClient.SqlException: General network error

I have identified the following scenario in which it can occur - Ican't explain it but I hope it will add to the discussion in some way.
1. Open an asp.net page that connects to the database/retrieves somedata/closes connection.
2. Open up Sql Query Analyser and identify the relevant spid for theasp.net page.
3. Kill the spid identified above
4. Try to reload the .aspx page - The error above is reported.5. If I try to reload the page again, everything works fine.
Interestingly, it seems that despite the fact that an error isreported in step 4 above, a spid is created although the LastBatchDateTime (sp_who2) is set to 01/01 00:00:00. Upon execution of step5, a new spid is created - almost as if the pooling mechanism isunaware of the existing spid.

Cheers
Chris
.

Nov 22 '05 #7
Assuming you're using Microsoft Sql Server and that Query Analyser is
installed:

Start -> Programs -> Microsoft Sql Server -> Query Analyser will open
up the Query Analyser.

Login to the relevant Sql Server.

Once you're in, type in sp_who2 and press F5. This will bring back a
list of processes running on the Sql Server.

I found it easier to make my asp.net application login under a
dedicated username / password so that the processes concerned could be
easily identified.

However, the quickest way to identify the processes is to change your
connection string and add the application name entry:
eg
conPubs = new SqlConnection("server=localhost;uid=sa;pwd=;databa se=pubs;application
name=MYAPPLICATIONNAME");

If you run your ASP.NET page, and then do sp_who2 in Sql Query
Analyser, you will see that the penultimate column (Program Name) will
contain (in the example above) MYAPPLICATIONNAME. The spid for that
process is shown in the spid column. If you want to kill the process,
type in and run kill [spid] where [spid] is the id of the process
identified above.

Cheers
Chris

i don't know how to Open up Sql Query Analyser and
identify the relevant spid for the asp.net page?
stan

Nov 22 '05 #8

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
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
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.