473,756 Members | 3,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Underlying connection was closed

http://support.microsoft.com/default.aspx?scid=kb;en-
us;819450

Questions:
1) Is this patch (fix) applicable to the .NET 1.1
Framework as well? That is, if we have Framework 1.1 (On
Win2K3/IIS6.0), do we still need this patch?

2) Does it specifically solve only this error:
The underlying connection was closed. An unexpected error
occured on send.
and not these (which is what we are seeing):

- The underlying connection was closed. Unable to connect
to the remote server. OR
- The underlying connection was closed. The proxy name
could not be resolved, verify correct proxy configuration.

3) Would this not happen when the webservices client is
not an ASP.NET client?

Thanks
Rajeev
Nov 21 '05 #1
26 16523
Hi Rajeev,

I am in the process of investigating your questions. I will get back to you as soon as I have an answer.

Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
Subject: Underlying connection was closed
Date: Thu, 19 Aug 2004 14:59:51 -0700
Lines: 23
Message-ID: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcSGN9pVbhl3R/z4Q7iWwoav0NPNX g==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6290
NNTP-Posting-Host: tk2msftngxa14.p hx.gbl 10.40.1.166
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

http://support.microsoft.com/default.aspx?scid=kb;en-
us;819450

Questions:
1) Is this patch (fix) applicable to the .NET 1.1
Framework as well? That is, if we have Framework 1.1 (On
Win2K3/IIS6.0), do we still need this patch?

2) Does it specifically solve only this error:
The underlying connection was closed. An unexpected error
occured on send.
and not these (which is what we are seeing):

- The underlying connection was closed. Unable to connect
to the remote server. OR
- The underlying connection was closed. The proxy name
could not be resolved, verify correct proxy configuration.

3) Would this not happen when the webservices client is
not an ASP.NET client?

Thanks
Rajeev

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
Nov 21 '05 #2
Hi Rajeev,

I've answered your questions below:

1) I believe this patch does apply to .Net 1.1.
2) No, it does not solve the other cases since they are mostly a result of user configuration problems.
3) Yes, the fix does apply when the client is not an ASP.NET client.

For the issues you are having, you should verify that your proxy settings are correct and that you are correctly specifying a valid server. Quite possibly these two issues
are related. If you are still having these problems, I might be able to help if you provide some more details.

Let me know if you have further questions.

Daniel Roth
--------------------
X-Tomcat-ID: 809948391
References: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_0001 _6ADD76EC"
Content-Transfer-Encoding: 7bit
From: da****@online.m icrosoft.com (Daniel Roth [MSFT])
Organization: Microsoft
Date: Thu, 26 Aug 2004 23:37:23 GMT
Subject: RE: Underlying connection was closed
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
Message-ID: <np************ **@cpmsftngxa10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Lines: 120
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6375
NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122

Hi Rajeev,

I am in the process of investigating your questions. I will get back to you as soon as I have an answer.

Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
Subject: Underlying connection was closed
Date: Thu, 19 Aug 2004 14:59:51 -0700
Lines: 23
Message-ID: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcSGN9pVbhl3R/z4Q7iWwoav0NPNX g==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6290
NNTP-Posting-Host: tk2msftngxa14.p hx.gbl 10.40.1.166
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

http://support.microsoft.com/default.aspx?scid=kb;en-
us;819450

Questions:
1) Is this patch (fix) applicable to the .NET 1.1
Framework as well? That is, if we have Framework 1.1 (On
Win2K3/IIS6.0), do we still need this patch?

2) Does it specifically solve only this error:
The underlying connection was closed. An unexpected error
occured on send.
and not these (which is what we are seeing):

- The underlying connection was closed. Unable to connect
to the remote server. OR
- The underlying connection was closed. The proxy name
could not be resolved, verify correct proxy configuration.

3) Would this not happen when the webservices client is
not an ASP.NET client?

Thanks
Rajeev

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
Nov 21 '05 #3

Hi Daniel -
Thanks for looking into this.

When you say, this patch applied to 1.1, do you mean we
still need to get this patch (if we already have 1.1)?
In any case, we are in the process of getting this patch.

However, what I dont understand is - how can the
configuration be incorrect as this happens
only "intermittently ".

So, in my load test case, I have a load test application
that runs against a web service. When the number of
simultaneous connections go over 20-25 range to the web
service, we begin to see these errors.

In my case the scenario is as follows:
Two separate machines:
1. Web Services Client (for load testing):
A simple .net console app (.NET 1.1 Framework)
2. Web Services Server:
A .Net web service hosted on IIS 6.0 (on Win2K3)
on .NET 1.1 Framework.

I start to see these errors when the load goes
beyond a certain threshold (about 25 connections, I
believe are open at that point).

What I have experimented with so far:
- Cleared the keep-alive flag on the IIS and on the
client by overriding the client proxy methods
- IIS 6.0 is configured to receive unlimited connections
and configured to have really long timeouts

If the configuration was incorrect, I would expect that
this would fail each time, but it fails with these errors
only under load.

Thanks in advance.

Rajeev

-----Original Message-----
Hi Rajeev,

I've answered your questions below:

1) I believe this patch does apply to .Net 1.1.
2) No, it does not solve the other cases since they are mostly a result of user configuration problems.3) Yes, the fix does apply when the client is not an ASP.NET client.
For the issues you are having, you should verify that your proxy settings are correct and that you are
correctly specifying a valid server. Quite possibly
these two issuesare related. If you are still having these problems, I might be able to help if you provide some more details.
Let me know if you have further questions.

Daniel Roth
--------------------
X-Tomcat-ID: 809948391
References: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="---- =_NextPart_0001 _6ADD76EC"Content-Transfer-Encoding: 7bit
From: da****@online.m icrosoft.com (Daniel Roth [MSFT])
Organization : Microsoft
Date: Thu, 26 Aug 2004 23:37:23 GMT
Subject: RE: Underlying connection was closed
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservicesMessage-ID: <np************ **@cpmsftngxa10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Lines: 120
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6375NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122

Hi Rajeev,

I am in the process of investigating your questions. I will get back to you as soon as I have an answer.
Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
Subject: Underlying connection was closed
Date: Thu, 19 Aug 2004 14:59:51 -0700
Lines: 23
Message-ID: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcSGN9pVbhl3R/z4Q7iWwoav0NPNX g==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6290NNTP-Posting-Host: tk2msftngxa14.p hx.gbl 10.40.1.166
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
http://support.microsoft.com/default.aspx?scid=kb;en-
us;819450

Questions:
1) Is this patch (fix) applicable to the .NET 1.1
Framework as well? That is, if we have Framework 1.1 (On
Win2K3/IIS6.0), do we still need this patch?

2) Does it specifically solve only this error:
The underlying connection was closed. An unexpected erroroccured on send.
and not these (which is what we are seeing):

- The underlying connection was closed. Unable to connectto the remote server. OR
- The underlying connection was closed. The proxy name
could not be resolved, verify correct proxy configuration.
3) Would this not happen when the webservices client is
not an ASP.NET client?

Thanks
Rajeev

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are
subject to the terms specified athttp://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the
newsgroup/thread from which they originated.
--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are
subject to the terms specified athttp://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all

responses to this message are best directed to the
newsgroup/thread from which they originated.
Nov 21 '05 #4

Today, I seem to be seeing these errors instead (so the
same underlying connection errors - but says "The request
was canceled" and in the following alternating sequence:

Exception: System.Net.WebE xception: The operation has
timed-out.
at System.Net.Http WebRequest.GetR equestStream()
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invok
e(String methodN
ame, Object[] parameters)

followed by:

Exception: System.Net.WebE xception: The underlying
connection was closed: The request was canceled.
at
System.Web.Serv ices.Protocols. WebClientProtoc ol.GetWebResp
onse(WebRequest request)
at
System.Web.Serv ices.Protocols. HttpWebClientPr otocol.GetWeb
Response(WebReq uest request)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invok
e(String methodName, Object[] parameters)

Again, does not happen all the time - I would say about
35% of the times under load.

Thx
Nov 21 '05 #5
You might be getting the "The underlying connection was closed. Unable to connect to the remote server" error because
too many connections are in the TIME_WAIT state. When this happens the system may run out of the random port range.
Clearing the KeepAlive flag might actually be aggravating this situation.

Please try entering "netstat -p TCP" at the command prompt and see how many TIME_WAIT connections are found.

Also, do you have code that we could use to reproduce these errors for further investigation?

Thank you for your patience.

Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
References: <99************ *************** *@phx.gbl> <np************ **@cpmsftngxa10 .phx.gbl>
<BI************ **@cpmsftngxa10 .phx.gbl>
Subject: RE: Underlying connection was closed
Date: Fri, 27 Aug 2004 12:41:42 -0700
Lines: 170
Message-ID: <17************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
thread-index: AcSMbeDGoXHBF+5 uQYaTicjNqvUzdQ ==
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6386
NNTP-Posting-Host: tk2msftngxa14.p hx.gbl 10.40.1.166
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
Hi Daniel -
Thanks for looking into this.

When you say, this patch applied to 1.1, do you mean we
still need to get this patch (if we already have 1.1)?
In any case, we are in the process of getting this patch.

However, what I dont understand is - how can the
configuration be incorrect as this happens
only "intermittently ".

So, in my load test case, I have a load test application
that runs against a web service. When the number of
simultaneous connections go over 20-25 range to the web
service, we begin to see these errors.

In my case the scenario is as follows:
Two separate machines:
1. Web Services Client (for load testing):
A simple .net console app (.NET 1.1 Framework)
2. Web Services Server:
A .Net web service hosted on IIS 6.0 (on Win2K3)
on .NET 1.1 Framework.

I start to see these errors when the load goes
beyond a certain threshold (about 25 connections, I
believe are open at that point).

What I have experimented with so far:
- Cleared the keep-alive flag on the IIS and on the
client by overriding the client proxy methods
- IIS 6.0 is configured to receive unlimited connections
and configured to have really long timeouts

If the configuration was incorrect, I would expect that
this would fail each time, but it fails with these errors
only under load.

Thanks in advance.

Rajeev

-----Original Message-----
Hi Rajeev,

I've answered your questions below:

1) I believe this patch does apply to .Net 1.1.
2) No, it does not solve the other cases since they are mostly a result of user configuration problems.3) Yes, the fix does apply when the client is not an ASP.NET client.
For the issues you are having, you should verify that your proxy settings are correct and that you are
correctly specifying a valid server. Quite possibly
these two issuesare related. If you are still having these problems, I might be able to help if you provide some more details.
Let me know if you have further questions.

Daniel Roth
--------------------
X-Tomcat-ID: 809948391
References: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="---- =_NextPart_0001 _6ADD76EC"Content-Transfer-Encoding: 7bit
From: da****@online.m icrosoft.com (Daniel Roth [MSFT])
Organization : Microsoft
Date: Thu, 26 Aug 2004 23:37:23 GMT
Subject: RE: Underlying connection was closed
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservicesMessage-ID: <np************ **@cpmsftngxa10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Lines: 120
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6375NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122

Hi Rajeev,

I am in the process of investigating your questions. I will get back to you as soon as I have an answer.
Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
Subject: Underlying connection was closed
Date: Thu, 19 Aug 2004 14:59:51 -0700
Lines: 23
Message-ID: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcSGN9pVbhl3R/z4Q7iWwoav0NPNX g==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6290NNTP-Posting-Host: tk2msftngxa14.p hx.gbl 10.40.1.166
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
http://support.microsoft.com/default.aspx?scid=kb;en-
us;819450

Questions:
1) Is this patch (fix) applicable to the .NET 1.1
Framework as well? That is, if we have Framework 1.1 (On
Win2K3/IIS6.0), do we still need this patch?

2) Does it specifically solve only this error:
The underlying connection was closed. An unexpected erroroccured on send.
and not these (which is what we are seeing):

- The underlying connection was closed. Unable to connectto the remote server. OR
- The underlying connection was closed. The proxy name
could not be resolved, verify correct proxy configuration.
3) Would this not happen when the webservices client is
not an ASP.NET client?

Thanks
Rajeev

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are
subject to the terms specified athttp://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the
newsgroup/thread from which they originated.
--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are
subject to the terms specified athttp://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all

responses to this message are best directed to the
newsgroup/thread from which they originated.

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the
terms specified at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread
from which they originated.
Nov 21 '05 #6
Hi Rajeev,

This behavior may be due to a known issue which requires a service patch (Hotfix #3028) which you can request through
Microsoft Product Support Services. The issue occurs when you are sending more requests then can be handled, and the
requests are queued internally. If these queued requests timeout before even hitting the wire, you may encounter the
issue fixed in the service patch.

Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
References: <99************ *************** *@phx.gbl> <np************ **@cpmsftngxa10 .phx.gbl>
<BI************ **@cpmsftngxa10 .phx.gbl> <17************ *************** *@phx.gbl>
Subject: RE: Underlying connection was closed
Date: Fri, 27 Aug 2004 13:55:58 -0700
Lines: 33
Message-ID: <02************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcSMeEDgyaPgu+L KR++naw+Hixg/jA==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6387
NNTP-Posting-Host: tk2msftngxa12.p hx.gbl 10.40.1.164
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
Today, I seem to be seeing these errors instead (so the
same underlying connection errors - but says "The request
was canceled" and in the following alternating sequence:

Exception: System.Net.WebE xception: The operation has
timed-out.
at System.Net.Http WebRequest.GetR equestStream()
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invok
e(String methodN
ame, Object[] parameters)

followed by:

Exception: System.Net.WebE xception: The underlying
connection was closed: The request was canceled.
at
System.Web.Serv ices.Protocols. WebClientProtoc ol.GetWebResp
onse(WebRequest request)
at
System.Web.Serv ices.Protocols. HttpWebClientPr otocol.GetWeb
Response(WebReq uest request)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invok
e(String methodName, Object[] parameters)

Again, does not happen all the time - I would say about
35% of the times under load.

Thx

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the
terms specified at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread
from which they originated.
Nov 21 '05 #7
Did you get a solution to this issue ? I am seeing the exactly the
same behaviour. When ever I load my application with many requests I
start seeing the same errors.

Thanks.
da****@online.m icrosoft.com (Daniel Roth [MSFT]) wrote in message news:<T3******* *******@cpmsftn gxa10.phx.gbl>. ..
You might be getting the "The underlying connection was closed. Unable to connect to the remote server" error because
too many connections are in the TIME_WAIT state. When this happens the system may run out of the random port range.
Clearing the KeepAlive flag might actually be aggravating this situation.

Please try entering "netstat -p TCP" at the command prompt and see how many TIME_WAIT connections are found.

Also, do you have code that we could use to reproduce these errors for further investigation?

Thank you for your patience.

Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
References: <99************ *************** *@phx.gbl> <np************ **@cpmsftngxa10 .phx.gbl>
<BI************ **@cpmsftngxa10 .phx.gbl>
Subject: RE: Underlying connection was closed
Date: Fri, 27 Aug 2004 12:41:42 -0700
Lines: 170
Message-ID: <17************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
thread-index: AcSMbeDGoXHBF+5 uQYaTicjNqvUzdQ ==
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6386
NNTP-Posting-Host: tk2msftngxa14.p hx.gbl 10.40.1.166
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
Hi Daniel -
Thanks for looking into this.

When you say, this patch applied to 1.1, do you mean we
still need to get this patch (if we already have 1.1)?
In any case, we are in the process of getting this patch.

However, what I dont understand is - how can the
configuration be incorrect as this happens
only "intermittently ".

So, in my load test case, I have a load test application
that runs against a web service. When the number of
simultaneous connections go over 20-25 range to the web
service, we begin to see these errors.

In my case the scenario is as follows:
Two separate machines:
1. Web Services Client (for load testing):
A simple .net console app (.NET 1.1 Framework)
2. Web Services Server:
A .Net web service hosted on IIS 6.0 (on Win2K3)
on .NET 1.1 Framework.

I start to see these errors when the load goes
beyond a certain threshold (about 25 connections, I
believe are open at that point).

What I have experimented with so far:
- Cleared the keep-alive flag on the IIS and on the
client by overriding the client proxy methods
- IIS 6.0 is configured to receive unlimited connections
and configured to have really long timeouts

If the configuration was incorrect, I would expect that
this would fail each time, but it fails with these errors
only under load.

Thanks in advance.

Rajeev

-----Original Message-----
Hi Rajeev,

I've answered your questions below:

1) I believe this patch does apply to .Net 1.1.
2) No, it does not solve the other cases since they are

mostly a result of user configuration problems.
3) Yes, the fix does apply when the client is not an

ASP.NET client.

For the issues you are having, you should verify that

your proxy settings are correct and that you are
correctly specifying a valid server. Quite possibly
these two issues
are related. If you are still having these problems, I

might be able to help if you provide some more details.

Let me know if you have further questions.

Daniel Roth
--------------------
X-Tomcat-ID: 809948391
References: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----

=_NextPart_0001 _6ADD76EC"
Content-Transfer-Encoding: 7bit
From: da****@online.m icrosoft.com (Daniel Roth [MSFT])
Organization : Microsoft
Date: Thu, 26 Aug 2004 23:37:23 GMT
Subject: RE: Underlying connection was closed
X-Tomcat-NG:

microsoft.publi c.dotnet.framew ork.webservices
Message-ID: <np************ **@cpmsftngxa10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Lines: 120
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl

microsoft.publi c.dotnet.framew ork.webservices :6375
NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122

Hi Rajeev,

I am in the process of investigating your questions. I

will get back to you as soon as I have an answer.

Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
Subject: Underlying connection was closed
Date: Thu, 19 Aug 2004 14:59:51 -0700
Lines: 23
Message-ID: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcSGN9pVbhl3R/z4Q7iWwoav0NPNX g==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl

microsoft.publi c.dotnet.framew ork.webservices :6290
NNTP-Posting-Host: tk2msftngxa14.p hx.gbl 10.40.1.166
X-Tomcat-NG:

microsoft.publi c.dotnet.framew ork.webservices

http://support.microsoft.com/default.aspx?scid=kb;en-
us;819450

Questions:
1) Is this patch (fix) applicable to the .NET 1.1
Framework as well? That is, if we have Framework 1.1 (On
Win2K3/IIS6.0), do we still need this patch?

2) Does it specifically solve only this error:
The underlying connection was closed. An unexpected

error
occured on send.
and not these (which is what we are seeing):

- The underlying connection was closed. Unable to

connect
to the remote server. OR
- The underlying connection was closed. The proxy name
could not be resolved, verify correct proxy

configuration.

3) Would this not happen when the webservices client is
not an ASP.NET client?

Thanks
Rajeev

--

This posting is provided "AS IS" with no warranties, and

confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all

responses to this message are best directed to the
newsgroup/thread from which they originated.

--

This posting is provided "AS IS" with no warranties, and

confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all

responses to this message are best directed to the
newsgroup/thread from which they originated.

Nov 21 '05 #8
Did you get solution to this problem ? I am seeing exactly the same
problem when I load my system with many HTTP requests.

da****@online.m icrosoft.com (Daniel Roth [MSFT]) wrote in message news:<T3******* *******@cpmsftn gxa10.phx.gbl>. ..
You might be getting the "The underlying connection was closed. Unable to connect to the remote server" error because
too many connections are in the TIME_WAIT state. When this happens the system may run out of the random port range.
Clearing the KeepAlive flag might actually be aggravating this situation.

Please try entering "netstat -p TCP" at the command prompt and see how many TIME_WAIT connections are found.

Also, do you have code that we could use to reproduce these errors for further investigation?

Thank you for your patience.

Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
References: <99************ *************** *@phx.gbl> <np************ **@cpmsftngxa10 .phx.gbl>
<BI************ **@cpmsftngxa10 .phx.gbl>
Subject: RE: Underlying connection was closed
Date: Fri, 27 Aug 2004 12:41:42 -0700
Lines: 170
Message-ID: <17************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
thread-index: AcSMbeDGoXHBF+5 uQYaTicjNqvUzdQ ==
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :6386
NNTP-Posting-Host: tk2msftngxa14.p hx.gbl 10.40.1.166
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
Hi Daniel -
Thanks for looking into this.

When you say, this patch applied to 1.1, do you mean we
still need to get this patch (if we already have 1.1)?
In any case, we are in the process of getting this patch.

However, what I dont understand is - how can the
configuration be incorrect as this happens
only "intermittently ".

So, in my load test case, I have a load test application
that runs against a web service. When the number of
simultaneous connections go over 20-25 range to the web
service, we begin to see these errors.

In my case the scenario is as follows:
Two separate machines:
1. Web Services Client (for load testing):
A simple .net console app (.NET 1.1 Framework)
2. Web Services Server:
A .Net web service hosted on IIS 6.0 (on Win2K3)
on .NET 1.1 Framework.

I start to see these errors when the load goes
beyond a certain threshold (about 25 connections, I
believe are open at that point).

What I have experimented with so far:
- Cleared the keep-alive flag on the IIS and on the
client by overriding the client proxy methods
- IIS 6.0 is configured to receive unlimited connections
and configured to have really long timeouts

If the configuration was incorrect, I would expect that
this would fail each time, but it fails with these errors
only under load.

Thanks in advance.

Rajeev

-----Original Message-----
Hi Rajeev,

I've answered your questions below:

1) I believe this patch does apply to .Net 1.1.
2) No, it does not solve the other cases since they are

mostly a result of user configuration problems.
3) Yes, the fix does apply when the client is not an

ASP.NET client.

For the issues you are having, you should verify that

your proxy settings are correct and that you are
correctly specifying a valid server. Quite possibly
these two issues
are related. If you are still having these problems, I

might be able to help if you provide some more details.

Let me know if you have further questions.

Daniel Roth
--------------------
X-Tomcat-ID: 809948391
References: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----

=_NextPart_0001 _6ADD76EC"
Content-Transfer-Encoding: 7bit
From: da****@online.m icrosoft.com (Daniel Roth [MSFT])
Organization : Microsoft
Date: Thu, 26 Aug 2004 23:37:23 GMT
Subject: RE: Underlying connection was closed
X-Tomcat-NG:

microsoft.publi c.dotnet.framew ork.webservices
Message-ID: <np************ **@cpmsftngxa10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Lines: 120
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl

microsoft.publi c.dotnet.framew ork.webservices :6375
NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122

Hi Rajeev,

I am in the process of investigating your questions. I

will get back to you as soon as I have an answer.

Daniel Roth

--------------------
Content-Class: urn:content-classes:message
From: "Rajeev Tipnis" <rt*****@convoq .com>
Sender: "Rajeev Tipnis" <rt*****@convoq .com>
Subject: Underlying connection was closed
Date: Thu, 19 Aug 2004 14:59:51 -0700
Lines: 23
Message-ID: <99************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcSGN9pVbhl3R/z4Q7iWwoav0NPNX g==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Path: cpmsftngxa10.ph x.gbl
Xref: cpmsftngxa10.ph x.gbl

microsoft.publi c.dotnet.framew ork.webservices :6290
NNTP-Posting-Host: tk2msftngxa14.p hx.gbl 10.40.1.166
X-Tomcat-NG:

microsoft.publi c.dotnet.framew ork.webservices

http://support.microsoft.com/default.aspx?scid=kb;en-
us;819450

Questions:
1) Is this patch (fix) applicable to the .NET 1.1
Framework as well? That is, if we have Framework 1.1 (On
Win2K3/IIS6.0), do we still need this patch?

2) Does it specifically solve only this error:
The underlying connection was closed. An unexpected

error
occured on send.
and not these (which is what we are seeing):

- The underlying connection was closed. Unable to

connect
to the remote server. OR
- The underlying connection was closed. The proxy name
could not be resolved, verify correct proxy

configuration.

3) Would this not happen when the webservices client is
not an ASP.NET client?

Thanks
Rajeev

--

This posting is provided "AS IS" with no warranties, and

confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all

responses to this message are best directed to the
newsgroup/thread from which they originated.

--

This posting is provided "AS IS" with no warranties, and

confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all

responses to this message are best directed to the
newsgroup/thread from which they originated.

Nov 21 '05 #9
We keep getting the same intermittent problem in production. We have
turned off HTTP KEEP ALIVES in IIS (this seems "hacky" to me).

we have a fat client using HTTP Binary remoting over port 80 to IIS.
the problem seems to emerge when we get about 50 users on the system
at once. (we have 2 load balanced servers that have low CPU
utilization) ...

the web servers are running W2K with the latest .NET 1.1 SP.

What gives???? stack below.

brian
Server stack trace:
at System.Runtime. Remoting.Channe ls.Http.HttpCli entTransportSin k.ProcessRespon seException(Web Exception
webException, HttpWebResponse & response)
at System.Runtime. Remoting.Channe ls.Http.HttpCli entTransportSin k.ProcessMessag e(IMessage
msg, ITransportHeade rs requestHeaders, Stream requestStream,
ITransportHeade rs& responseHeaders , Stream& responseStream)
at System.Runtime. Remoting.Channe ls.BinaryClient FormatterSink.S yncProcessMessa ge(IMessage
msg)

Exception rethrown at [0]:
at System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage
reqMsg, IMessage retMsg)
at System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData&
msgData, Int32 type)
Nov 21 '05 #10

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

Similar topics

3
3251
by: MattM | last post by:
I am getting the "The underlying connection was closed: Unable to connect to the remote server" message when trying to connect an ASPX page to a simple Hello World web service. I have read a few posts on this topic but my situation is different. The problem appears to be a setting with my test server. The basic scenario is it works when the URL is the short server name (testserver) but fails with the full server name (testserver.abc.com). ...
5
24762
by: Vijayakrishna Pondala | last post by:
Hi, We are using the following error randomly, when accessing a webservice method/servlet hosted on JBoss application server: The underlying connection was closed: An unexpected error occurred on a receive. We are using .NET v1.1.
4
20489
by: Matthew.DelVecchio | last post by:
hello, i am developing an ASP.NET web app that consumes a 3rd party vendor webservice. it is my first one so while ive done my homework, im not an expert on the matter. our partner's webservice operates on SSL via an "https://" url. they also gave me a .PFX certificate which ive installed via window's MMC utility, into the "Computer account"'s Personal store; as indicated by articles id found. i then export a .CER to the filesystem...
2
3372
by: hazz | last post by:
Dim ws As New GetInfoByZIP.USZip works great if I have an internet connection on my dev machine. As soon as I lose or disable my internet connection I get "The underlying connection was closed: The remote name could not be resolved." It isn't as simple as just checking to see if ws is null or nothing.
1
3510
by: Tim Reynolds | last post by:
Team, From a windows service, we consume a web service on another server and occasionally receive System.Net.WebException: The underlying connection was closed:. For some clients we call, we do not see this as we ran into this previoulsy, made a posting, and received some suggested code to resolved. The code was put in their proxy classes and was this... protected override WebRequest GetWebRequest(Uri uri) {HttpWebRequest webRequest =...
3
4077
by: Rahul Anand | last post by:
As per our requirements we have a web service which internally connects (Simple HTTP Post Request) to a remote server to initiate some work. We are calling the web service method asynchronously from a .NET Web Application hosted on IIS. In our setup the web request form a client can be running for long duration (may be more than 4 hours). We are getting exceptions during the HTTP send/receive inside the web service method. The exception...
2
2277
by: =?Utf-8?B?RnJpZWRoZWxtRWljaGlu?= | last post by:
I am consuming continously my own web-services on a localhost client with a rate of perhaps 35 request/response-pairs a minute. I am using "invoke-id=1", so there is at the same time only one request pending. After a runtime of 4 days I get the system.net.exception "The underlying connection was closed: An unexpected error occured on a send" Subsequent ws-calls in this state result also in the same exception, browsing a local hosted...
4
21804
by: =?Utf-8?B?QXJuYXVkIFZpc2N1c2k=?= | last post by:
Hi all, we meet a problem since we use WCF to consume java WebServices. Often the first call works then the second raises the following error : "The underlying connection was closed : " We use a basicHttpBinding over HTTPS to connect to WebService. The configuration is the following <binding name="SoapBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:02:00"
4
4578
by: Sin Jeong-hun | last post by:
I don't get the message so it's hard to debug that, but some of my clients report that they get "The underlying connection was closed unexpectedly" exception. According to this site (http:// www.dotnetspider.com/resources/2596-e-underlying-connection-was-closed-A-connection.aspx), it's a bug of .NET 2.0, and the author suggests that we use KeepAlive=false until Microsoft fixes it. It seems like almost 5 years have passes since the...
0
9455
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
9271
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
10031
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9869
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
9838
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
8709
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
5140
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2665
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.