473,659 Members | 2,920 Online
Bytes | Software Development & Data Engineering Community
+ 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.Sql Client.SqlExcep tion:
General network error. Check your network documentation.

Source Error:
Line 214:
Line 215: ' Execute the command
Line 216: myConnection.Op en()
Line 217: Dim result As SqlDataReader =
myCommand.Execu teReader(Comman dBehavior.Close Connection)
Line 218:
Source File: C:\Market\Compo nents\Maintenan ceDB.vb
Line: 216

Stack Trace:
[SqlException: General network error. Check your network
documentation.]
System.Data.Sql Client.Connecti onPool.GetConne ction
(Boolean& isInTransaction ) +472

System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledCon
nection(SqlConn ectionString options, Boolean&
isInTransaction ) +372
System.Data.Sql Client.SqlConne ction.Open() +384
Market.MK.Maint enanceDB.Getwor kQueues() in
C:\Market\Compo nents\Maintenan ceDB.vb:216
Market.maintDef ault.Page_Load( Object sender, EventArgs
e) in C:\Market\maint Default.aspx.vb :34
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +720

Nov 22 '05 #1
7 6435
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.Sql Client.SqlExcep tion:
General network error. Check your network documentation.

Source Error:
Line 214:
Line 215: ' Execute the command
Line 216: myConnection.Op en()
Line 217: Dim result As SqlDataReader =
myCommand.Execu teReader(Comman dBehavior.Close Connection)
Line 218:
Source File: C:\Market\Compo nents\Maintenan ceDB.vb
Line: 216

Stack Trace:
[SqlException: General network error. Check your network
documentation.]
System.Data.Sql Client.Connecti onPool.GetConne ction
(Boolean& isInTransaction ) +472

System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledCon
nection(SqlConn ectionString options, Boolean&
isInTransaction ) +372
System.Data.Sql Client.SqlConne ction.Open() +384
Market.MK.Maint enanceDB.Getwor kQueues() in
C:\Market\Compo nents\Maintenan ceDB.vb:216
Market.maintDef ault.Page_Load( Object sender, EventArgs
e) in C:\Market\maint Default.aspx.vb :34
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +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.Sql Client.SqlExcep tion:
General network error. Check your network documentation.

Source Error:
Line 214:
Line 215: ' Execute the command
Line 216: myConnection.Op en()
Line 217: Dim result As SqlDataReader =
myCommand.Execu teReader(Comman dBehavior.Close Connection)
Line 218:
Source File: C:\Market\Compo nents\Maintenan ceDB.vb
Line: 216

Stack Trace:
[SqlException: General network error. Check your network documentation.]
System.Data.Sql Client.Connecti onPool.GetConne ction
(Boolean& isInTransaction ) +472

System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledCon nection(SqlConn ectionString options, Boolean&
isInTransaction ) +372
System.Data.Sql Client.SqlConne ction.Open() +384
Market.MK.Maint enanceDB.Getwor kQueues() in
C:\Market\Compo nents\Maintenan ceDB.vb:216
Market.maintDef ault.Page_Load( Object sender, EventArgs e) in C:\Market\maint Default.aspx.vb :34
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +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*******@disc ussions.microso ft.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.Sql Client.SqlExcep tion:
General network error. Check your network documentation.

Source Error:
Line 214:
Line 215: ' Execute the command
Line 216: myConnection.Op en()
Line 217: Dim result As SqlDataReader =
myCommand.Execu teReader(Comman dBehavior.Close Connection)
Line 218:
Source File: C:\Market\Compo nents\Maintenan ceDB.vb
Line: 216

Stack Trace:
[SqlException: General network error. Check your network documentation.]
System.Data.Sql Client.Connecti onPool.GetConne ction
(Boolean& isInTransaction ) +472

System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledCon nection(SqlConn ectionString options, Boolean&
isInTransaction ) +372
System.Data.Sql Client.SqlConne ction.Open() +384
Market.MK.Maint enanceDB.Getwor kQueues() in
C:\Market\Compo nents\Maintenan ceDB.vb:216
Market.maintDef ault.Page_Load( Object sender, EventArgs e) in C:\Market\maint Default.aspx.vb :34
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +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*******@disc ussions.microso ft.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.Sql Client.SqlExcep tion: >> General network error. Check your network documentation. >>
>> Source Error:
>>
>>
>> Line 214:
>> Line 215: ' Execute the command
>> Line 216: myConnection.Op en()
>> Line 217: Dim result As SqlDataReader =
>> myCommand.Execu teReader (CommandBehavio r.CloseConnecti on) >> Line 218:
>>
>>
>> Source File: C:\Market\Compo nents\Maintenan ceDB.vb
>> Line: 216
>>
>> Stack Trace:
>>
>>
>> [SqlException: General network error. Check your

network
>> documentation.]
>> System.Data.Sql Client.Connecti onPool.GetConne ction
>> (Boolean& isInTransaction ) +472
>>
>>

System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledCon
>> nection(SqlConn ectionString options, Boolean&
>> isInTransaction ) +372
>> System.Data.Sql Client.SqlConne ction.Open() +384
>> Market.MK.Maint enanceDB.Getwor kQueues() in
>> C:\Market\Compo nents\Maintenan ceDB.vb:216
>> Market.maintDef ault.Page_Load( Object sender,

EventArgs
>> e) in C:\Market\maint Default.aspx.vb :34
>> System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
>> System.Web.UI.C ontrol.LoadRecu rsive() +35
>> System.Web.UI.P age.ProcessRequ estMain() +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.Sql Client.SqlExcep tion: 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.Sq lClient.SqlExce ption: 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.
Interestingl y, 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=localhos t;uid=sa;pwd=;d atabase=pubs;ap plication
name=MYAPPLICAT IONNAME");

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) MYAPPLICATIONNA ME. 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
2593
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 documentation? Nothing shows in the event viewer. where do I start? General network error. Check your network documentation. Description: An unhandled exception occurred during the execution of the current web request. Please review the
2
5055
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 just find (including all the sql steps), but after the Page_Load() event I get this error. I really don't know why. Any ideas? ================================================================== General network error. Check your network...
7
442
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 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...
0
1674
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 to fill the dataset. The problem occurs rarely. I've searched Google and have seen many posts dealing with this problem. The typical culprits are: Network Problems: A bad cable, NIC, or router can cause this problem. In my case, however, both the...
11
10830
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 responding. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
7
2022
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 2000. They are continuing to work on the issue, but it seems as if our progress is grinding to a halt. I asked this question on the newsgroups before going to MS but figured I'd give it another shot now that I have more information. The problem...
3
2270
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 have a sql file with two long T-SQL batches, each of which contains about 50 thousand simple insert statments into 2 non-indexed tables. Batch 1 inserts into Table 1 and batch 2 inserts into Table 2, so they can run in parallel. I parse each...
0
1514
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 sql statements. My question is this: Why does SQL generate a General Network Error instead of the Timeout Expired Error? When I run my program multiple times, there are cases where I'd get the Timeout Expired Error ("The timeout period elapsed...
0
2182
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 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...
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8335
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8747
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8528
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7356
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.