473,547 Members | 2,354 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 16477
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
3230
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...
5
24736
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
20474
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...
2
3357
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
3478
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...
3
4063
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). ...
2
2265
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"...
4
21792
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"...
4
4548
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...
0
7437
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...
0
7947
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...
0
7797
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6032
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...
0
5081
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...
0
3493
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...
1
1923
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 we have to send another system
1
1050
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
748
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...

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.