473,769 Members | 5,900 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
26 16526
Daniel,

I seem to be having the same problem here.
I've written a client application which fires off multiple threads
each which make many requests to our web-service to mimic a server
under extreme load (between 40 and 60 request per second, many
thousands of total requests in a short time period).

Running "netstat -p TCP" shows almost 4000 connections in a TIME_WAIT
state.

Based on your responses within this thread, it looks like the requests
are actually being queued on the client and time-out before a message
actually gets sent over the wire.

So can you clarify that this is a problem on the client, not the
server (and that hotfix #3028 resolves the problem from the
perspective of the client initiating requests, not the server
responding to them)?

If this is the case, then I simply need to re-think my testing
approach. In production, none of our clients will generate anywhere
near as much traffic, so this shouldn't be a production worry.

Regards,

Dennis Martin.
Nov 21 '05 #21
It looks like a null reference exception is being thrown, which is causing the connection to be closed. Have you been able to track down the cause of the null reference
exception? You didn't include the line numbers, but the exception appears to happen on line 105.

Daniel Roth

--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTMGn0bRA9JAfD 7SBaEE307DUkRFg ==
X-WBNR-Posting-Host: 163.188.94.134
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl> <8F************ *************** *******@microso ft.com> <Eb0VI6$yEHA.33 88
@cpmsftngxa10.p hx.gbl>
Subject: RE: Underlying connection was closed
Date: Tue, 16 Nov 2004 12:26:01 -0800
Lines: 168
Message-ID: <50************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :7485
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Daniel,
Find following my complete exception and stack trace.
Find also the code that I use to access the service
Yes, I am confirming that I am able to access the web service through the
browser, but not using your application code.
I do have .NET framework 1.1 sp1 and .NET framework 1.0 - the version of my
aspnet_isapi.dl l is 1.1.4322.2032
There is no other load - the webservice is on my local machine and no-one
else is accessing it.

CODE THAT ACCESSES THE SERVICE
private void cmdBegin_Click( object sender, System.EventArg s e)
{
try
{

localhost.Servi ce1 x = new localhost.Servi ce1();
// x.Timeout = 90000;
// x.Timeout = -1;
x.HelloWorld();
System.Diagnost ics.Debug.Write Line(x.HelloWor ld());
}
catch(Exception exct)
{
System.Diagnost ics.Debug.Write Line(exct.Messa ge.ToString());
// System.Diagnost ics.Debug.Write Line(exct.Sourc e.ToString());
System.Diagnost ics.Debug.Write Line("INNER EXCEPTION" +
exct.InnerExcep tion.StackTrace .ToString());
System.Diagnost ics.Debug.Write Line(exct.Stack Trace.ToString( ));
}
}
I also have the entire app itself but I am not sure how to upload it and
where you can download it from. I have written a simple HelloWorld Webservice
and a simple WindowsApplicat ion1 that calls the HelloWorld webservice.

ERROR STACK TRACE

'WindowsApplica tion1.exe': Loaded 'lu6vo1n4', No symbols loaded.
The underlying connection was closed: An unexpected error occurred on a
receive.
An unhandled exception of type 'System.NullRef erenceException ' occurred in
WindowsApplicat ion1.exe

Additional information: Object reference not set to an instance of an object.
Unhandled Exception: System.NullRefe renceException: Object reference not set
to an instance of an object.
at WindowsApplicat ion1.Form1.cmdB egin_Click(Obje ct sender, EventArgs e)
in d:\windowsappli cation1\form1.c s:line 105
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows. Forms.UnsafeNat iveMethods.Disp atchMessageW(MS G& msg)
at
System.Windows. Forms.Component Manager.System. Windows.Forms.U nsafeNativeMeth ods+IMsoCompone ntManager.FPush MessageLoop(Int 32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows. Forms.ThreadCon text.RunMessage LoopInner(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.ThreadCon text.RunMessage Loop(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.Applicati on.Run(Form mainForm)
at WindowsApplicat ion1.Form1.Main () in
d:\windowsappli cation1\form1.c s:line 84The program '[2816]
WindowsApplicat ion1.exe' has exited with code 0 (0x0).
"Daniel Roth [MSFT]" wrote:
Hello,

A couple of questions that might help me understand your issue:

Could you please post the complete exception text and stack trace? It would be helpful to know exactly what error you are seeing. Also, if there any inner exceptions, that information would be useful as well.

If possible, could you please post the code you are using to access the webservice? Also, please confirm that you are able to access the web service through the browser, but not using your application code.

Is SP1 for the .Net Framework 1.1 installed?

Is there any other load on the server, or is the server just receiving the single web service call?

Thank you for your patience.

Daniel Roth
--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTI98jEurcOKG+ ITEmrlPwWvBgISA ==
X-WBNR-Posting-Host: 163.188.94.164
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl>
Subject: RE: Underlying connection was closed
Date: Fri, 12 Nov 2004 12:40:02 -0800
Lines: 37
Message-ID: <8F************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :7407
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I have a similar issue. My webservice will work on browser but my windows app
cannot access it.

My original error message used to be the underlying connection was closed.
I am using .NET framework 1.1 and IIS 5.0 on W2K.

Now, I get an operation timed-out error.

I have tried pretty much everything from all news-groups and am desperate to
find a fix for this.

"Rajeev Tipnis" wrote:
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 #22
Are you setting KeepAlive to false? Doing so will cause the number of connections in the TIME_WAIT state to increase. We recommend leaving KeepAlive set to true
whenever possible.

Also, are these requests authenticated? If so, you can try setting both PreAuthenticate and UnsafeAuthentic ateConnectionSh aring to true. You need to be careful, though,
when setting UnsafeAuthentic ateConnectionSh aring to true because authenticated connections could be shared between different users. I've copied the warning text for
this property from the documentation below:

"Caution: Because it is possible for an application to use the connection without being authenticated, you need to be sure that there is no security vulnerability in your
system when setting this property to true. If your application sends requests for multiple users (impersonates multiple user accounts) and relies on authentication to protect
resources, do not set this property to true unless you use connection groups as described below. "

Hotfix 3028 is probably not related to your issue.

Daniel Roth

--------------------
From: de***********@h otmail.com (Dennis Martin)
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: Re: Underlying connection was closed
Date: 29 Nov 2004 08:53:29 -0800
Organization: http://groups.google.com
Lines: 27
Message-ID: <f4************ **************@ posting.google. com>
References: <99************ *************** *@phx.gbl> <8F************ *************** *******@microso ft.com> <Eb0VI6$yEHA.33 88
@cpmsftngxa10.p hx.gbl> <50************ *************** *******@microso ft.com>
NNTP-Posting-Host: 209.182.108.158
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google. com 1101747209 25507 127.0.0.1 (29 Nov 2004 16:53:29 GMT)
X-Complaints-To: gr**********@go ogle.com
NNTP-Posting-Date: Mon, 29 Nov 2004 16:53:29 +0000 (UTC)
Path: cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. sul.t-online.de!t-online.de!borde r2.nntp.dca.gig anews.com!
border1.nntp.dc a.giganews.com! nntp.giganews.c om!news.glorb.c om!postnews.goo gle.com!not-for-mail
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :7679
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Daniel,

I seem to be having the same problem here.
I've written a client application which fires off multiple threads
each which make many requests to our web-service to mimic a server
under extreme load (between 40 and 60 request per second, many
thousands of total requests in a short time period).

Running "netstat -p TCP" shows almost 4000 connections in a TIME_WAIT
state.

Based on your responses within this thread, it looks like the requests
are actually being queued on the client and time-out before a message
actually gets sent over the wire.

So can you clarify that this is a problem on the client, not the
server (and that hotfix #3028 resolves the problem from the
perspective of the client initiating requests, not the server
responding to them)?

If this is the case, then I simply need to re-think my testing
approach. In production, none of our clients will generate anywhere
near as much traffic, so this shouldn't be a production worry.

Regards,

Dennis Martin.

--

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 #23
I was not able to track those exceptions. We tried changing the
machine.config and it made it even worse. So, right now, I uninstalled IIS,
reinstalled it and I am going to uninstall Visual Studio and try reinstalling
it.
--Subha

"Daniel Roth [MSFT]" wrote:
It looks like a null reference exception is being thrown, which is causing the connection to be closed. Have you been able to track down the cause of the null reference
exception? You didn't include the line numbers, but the exception appears to happen on line 105.

Daniel Roth

--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTMGn0bRA9JAfD 7SBaEE307DUkRFg ==
X-WBNR-Posting-Host: 163.188.94.134
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl> <8F************ *************** *******@microso ft.com> <Eb0VI6$yEHA.33 88
@cpmsftngxa10.p hx.gbl>
Subject: RE: Underlying connection was closed
Date: Tue, 16 Nov 2004 12:26:01 -0800
Lines: 168
Message-ID: <50************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :7485
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Daniel,
Find following my complete exception and stack trace.
Find also the code that I use to access the service
Yes, I am confirming that I am able to access the web service through the
browser, but not using your application code.
I do have .NET framework 1.1 sp1 and .NET framework 1.0 - the version of my
aspnet_isapi.dl l is 1.1.4322.2032
There is no other load - the webservice is on my local machine and no-one
else is accessing it.

CODE THAT ACCESSES THE SERVICE
private void cmdBegin_Click( object sender, System.EventArg s e)
{
try
{

localhost.Servi ce1 x = new localhost.Servi ce1();
// x.Timeout = 90000;
// x.Timeout = -1;
x.HelloWorld();
System.Diagnost ics.Debug.Write Line(x.HelloWor ld());
}
catch(Exception exct)
{
System.Diagnost ics.Debug.Write Line(exct.Messa ge.ToString());
// System.Diagnost ics.Debug.Write Line(exct.Sourc e.ToString());
System.Diagnost ics.Debug.Write Line("INNER EXCEPTION" +
exct.InnerExcep tion.StackTrace .ToString());
System.Diagnost ics.Debug.Write Line(exct.Stack Trace.ToString( ));
}
}
I also have the entire app itself but I am not sure how to upload it and
where you can download it from. I have written a simple HelloWorld Webservice
and a simple WindowsApplicat ion1 that calls the HelloWorld webservice.

ERROR STACK TRACE

'WindowsApplica tion1.exe': Loaded 'lu6vo1n4', No symbols loaded.
The underlying connection was closed: An unexpected error occurred on a
receive.
An unhandled exception of type 'System.NullRef erenceException ' occurred in
WindowsApplicat ion1.exe

Additional information: Object reference not set to an instance of an object.
Unhandled Exception: System.NullRefe renceException: Object reference not set
to an instance of an object.
at WindowsApplicat ion1.Form1.cmdB egin_Click(Obje ct sender, EventArgs e)
in d:\windowsappli cation1\form1.c s:line 105
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows. Forms.UnsafeNat iveMethods.Disp atchMessageW(MS G& msg)
at
System.Windows. Forms.Component Manager.System. Windows.Forms.U nsafeNativeMeth ods+IMsoCompone ntManager.FPush MessageLoop(Int 32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows. Forms.ThreadCon text.RunMessage LoopInner(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.ThreadCon text.RunMessage Loop(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.Applicati on.Run(Form mainForm)
at WindowsApplicat ion1.Form1.Main () in
d:\windowsappli cation1\form1.c s:line 84The program '[2816]
WindowsApplicat ion1.exe' has exited with code 0 (0x0).
"Daniel Roth [MSFT]" wrote:
Hello,

A couple of questions that might help me understand your issue:

Could you please post the complete exception text and stack trace? It would be helpful to know exactly what error you are seeing. Also, if there any inner

exceptions, that
information would be useful as well.

If possible, could you please post the code you are using to access the webservice? Also, please confirm that you are able to access the web service through

the
browser, but not using your application code.

Is SP1 for the .Net Framework 1.1 installed?

Is there any other load on the server, or is the server just receiving the single web service call?

Thank you for your patience.

Daniel Roth
--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTI98jEurcOKG+ ITEmrlPwWvBgISA ==
X-WBNR-Posting-Host: 163.188.94.164
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl>
Subject: RE: Underlying connection was closed
Date: Fri, 12 Nov 2004 12:40:02 -0800
Lines: 37
Message-ID: <8F************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :7407
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I have a similar issue. My webservice will work on browser but my windows app
cannot access it.

My original error message used to be the underlying connection was closed.
I am using .NET framework 1.1 and IIS 5.0 on W2K.

Now, I get an operation timed-out error.

I have tried pretty much everything from all news-groups and am desperate to
find a fix for this.

"Rajeev Tipnis" wrote:
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 #24
I did put a break point. The null reference exception was because there was
no inner-exception. So, I commented out the line that printed innerexception
and tried to get a stack trace of the main error.

If I do not put a try-catch block The error I get is "Underlying connection
was closed: Unexpected error occured on receive".

If I put a try catch block and ask it to print a stack trace I get "The
operation has timed-out.
at
System.Web.Serv ices.Protocols. WebClientProtoc ol.GetWebRespon se(WebRequest
request)"

The error message alternates between operation timing out and unexpected
error occured on receive.

I am at a loss here. Don't know what to do.

I have a case created with MSFT and someone (not sure if I can mentione name
here) did a live meeting for 2 hours and is looking into this issue but we
don't seem to have much clues. He created hang dumps and I have hang dumps,
but that is how far we have gotten.

"Dan Rogers" wrote:
Hi,

Jumping in with .02cents... reinstalling IIS/ASP.net is unlikely to catch
the cause of a null reference exception in your code. Suggest you put a
debugger on the method being called and figure out what line of code is
throwing the exception. This is the line that will be using the object
reference that is not initialized.

Hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTX8c8Jon1HI/LpSMCd2FvCjqKp8 Q==
X-WBNR-Posting-Host: 163.188.94.112
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl>
<8F************ *************** *******@microso ft.com>
<Eb************ **@cpmsftngxa10 .phx.gbl>
<50************ *************** *******@microso ft.com>
<qW************ **@cpmsftngxa10 .phx.gbl>
Subject: RE: Underlying connection was closed
Date: Wed, 1 Dec 2004 14:05:03 -0800
Lines: 218
Message-ID: <9C************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA06.phx.gbl!cp msftngxa06.phx. gbl!TK2MSFTNGP0 8
.phx.gbl!TK2MSF TNGXA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7729
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I was not able to track those exceptions. We tried changing the
machine.config and it made it even worse. So, right now, I uninstalled
IIS,
reinstalled it and I am going to uninstall Visual Studio and try
reinstalling
it.
--Subha

"Daniel Roth [MSFT]" wrote:
It looks like a null reference exception is being thrown, which is

causing the connection to be closed. Have you been able to track down the
cause of the null reference
exception? You didn't include the line numbers, but the exception

appears to happen on line 105.

Daniel Roth

--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTMGn0bRA9JAfD 7SBaEE307DUkRFg ==
X-WBNR-Posting-Host: 163.188.94.134
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl>

<8F************ *************** *******@microso ft.com> <Eb0VI6$yEHA.33 88
@cpmsftngxa10.p hx.gbl>
Subject: RE: Underlying connection was closed
Date: Tue, 16 Nov 2004 12:26:01 -0800
Lines: 168
Message-ID: <50************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl

microsoft.publi c.dotnet.framew ork.webservices :7485
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Daniel,
Find following my complete exception and stack trace.
Find also the code that I use to access the service
Yes, I am confirming that I am able to access the web service through the
browser, but not using your application code.
I do have .NET framework 1.1 sp1 and .NET framework 1.0 - the version of

my
aspnet_isapi.dl l is 1.1.4322.2032
There is no other load - the webservice is on my local machine and no-one
else is accessing it.

CODE THAT ACCESSES THE SERVICE
private void cmdBegin_Click( object sender, System.EventArg s e)
{
try
{

localhost.Servi ce1 x = new localhost.Servi ce1();
// x.Timeout = 90000;
// x.Timeout = -1;
x.HelloWorld();
System.Diagnost ics.Debug.Write Line(x.HelloWor ld());
}
catch(Exception exct)
{
System.Diagnost ics.Debug.Write Line(exct.Messa ge.ToString());
// System.Diagnost ics.Debug.Write Line(exct.Sourc e.ToString());
System.Diagnost ics.Debug.Write Line("INNER EXCEPTION" +
exct.InnerExcep tion.StackTrace .ToString());
System.Diagnost ics.Debug.Write Line(exct.Stack Trace.ToString( ));
}
}
I also have the entire app itself but I am not sure how to upload it and
where you can download it from. I have written a simple HelloWorld

Webservice
and a simple WindowsApplicat ion1 that calls the HelloWorld webservice.

ERROR STACK TRACE

'WindowsApplica tion1.exe': Loaded 'lu6vo1n4', No symbols loaded.
The underlying connection was closed: An unexpected error occurred on a
receive.
An unhandled exception of type 'System.NullRef erenceException ' occurred

in
WindowsApplicat ion1.exe

Additional information: Object reference not set to an instance of an

object.


Unhandled Exception: System.NullRefe renceException: Object reference not

set
to an instance of an object.
at WindowsApplicat ion1.Form1.cmdB egin_Click(Obje ct sender, EventArgs

e)
in d:\windowsappli cation1\form1.c s:line 105
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows. Forms.UnsafeNat iveMethods.Disp atchMessageW(MS G& msg)
at

System.Windows. Forms.Component Manager.System. Windows.Forms.U nsafeNativeMeth o
ds+IMsoComponen tManager.FPushM essageLoop(Int3 2
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows. Forms.ThreadCon text.RunMessage LoopInner(Int32

reason,
ApplicationCont ext context)
at System.Windows. Forms.ThreadCon text.RunMessage Loop(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.Applicati on.Run(Form mainForm)
at WindowsApplicat ion1.Form1.Main () in
d:\windowsappli cation1\form1.c s:line 84The program '[2816]
WindowsApplicat ion1.exe' has exited with code 0 (0x0).
"Daniel Roth [MSFT]" wrote:
Hello,

A couple of questions that might help me understand your issue:

Could you please post the complete exception text and stack trace? It would be helpful to know exactly what error you are seeing. Also, if there
any inner
exceptions, that
information would be useful as well.

If possible, could you please post the code you are using to access the

webservice? Also, please confirm that you are able to access the web
service through
the
browser, but not using your application code.

Is SP1 for the .Net Framework 1.1 installed?

Is there any other load on the server, or is the server just receiving

the single web service call?
Thank you for your patience.

Daniel Roth
--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTI98jEurcOKG+ ITEmrlPwWvBgISA ==
X-WBNR-Posting-Host: 163.188.94.164
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl>
Subject: RE: Underlying connection was closed
Date: Fri, 12 Nov 2004 12:40:02 -0800
Lines: 37
Message-ID: <8F************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29 Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :7407 X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I have a similar issue. My webservice will work on browser but my windows app cannot access it.

My original error message used to be the underlying connection was closed. I am using .NET framework 1.1 and IIS 5.0 on W2K.

Now, I get an operation timed-out error.

I have tried pretty much everything from all news-groups and am desperate to find a fix for this.

"Rajeev Tipnis" wrote:

> 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 #25
Dan,

Thanks for the mail. An actual person from Microsoft Tech support found that
one of my installed applications was interfering with IIS for some reason.
When I uninstalled that application and restarted, my windows application
started reaching the webservice url.

He found this by generating hang dumps and analyzing the hang dumps. I
wonder how others having similar problems would have found this.

Regards
Subha

"subha" wrote:
I did put a break point. The null reference exception was because there was
no inner-exception. So, I commented out the line that printed innerexception
and tried to get a stack trace of the main error.

If I do not put a try-catch block The error I get is "Underlying connection
was closed: Unexpected error occured on receive".

If I put a try catch block and ask it to print a stack trace I get "The
operation has timed-out.
at
System.Web.Serv ices.Protocols. WebClientProtoc ol.GetWebRespon se(WebRequest
request)"

The error message alternates between operation timing out and unexpected
error occured on receive.

I am at a loss here. Don't know what to do.

I have a case created with MSFT and someone (not sure if I can mentione name
here) did a live meeting for 2 hours and is looking into this issue but we
don't seem to have much clues. He created hang dumps and I have hang dumps,
but that is how far we have gotten.

"Dan Rogers" wrote:
Hi,

Jumping in with .02cents... reinstalling IIS/ASP.net is unlikely to catch
the cause of a null reference exception in your code. Suggest you put a
debugger on the method being called and figure out what line of code is
throwing the exception. This is the line that will be using the object
reference that is not initialized.

Hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTX8c8Jon1HI/LpSMCd2FvCjqKp8 Q==
X-WBNR-Posting-Host: 163.188.94.112
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl>
<8F************ *************** *******@microso ft.com>
<Eb************ **@cpmsftngxa10 .phx.gbl>
<50************ *************** *******@microso ft.com>
<qW************ **@cpmsftngxa10 .phx.gbl>
Subject: RE: Underlying connection was closed
Date: Wed, 1 Dec 2004 14:05:03 -0800
Lines: 218
Message-ID: <9C************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA06.phx.gbl!cp msftngxa06.phx. gbl!TK2MSFTNGP0 8
.phx.gbl!TK2MSF TNGXA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7729
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I was not able to track those exceptions. We tried changing the
machine.config and it made it even worse. So, right now, I uninstalled
IIS,
reinstalled it and I am going to uninstall Visual Studio and try
reinstalling
it.
--Subha

"Daniel Roth [MSFT]" wrote:
It looks like a null reference exception is being thrown, which is

causing the connection to be closed. Have you been able to track down the
cause of the null reference
exception? You didn't include the line numbers, but the exception

appears to happen on line 105.

Daniel Roth

--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTMGn0bRA9JAfD 7SBaEE307DUkRFg ==
X-WBNR-Posting-Host: 163.188.94.134
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl>

<8F************ *************** *******@microso ft.com> <Eb0VI6$yEHA.33 88
@cpmsftngxa10.p hx.gbl>
Subject: RE: Underlying connection was closed
Date: Tue, 16 Nov 2004 12:26:01 -0800
Lines: 168
Message-ID: <50************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl

microsoft.publi c.dotnet.framew ork.webservices :7485
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Daniel,
Find following my complete exception and stack trace.
Find also the code that I use to access the service
Yes, I am confirming that I am able to access the web service through the
browser, but not using your application code.
I do have .NET framework 1.1 sp1 and .NET framework 1.0 - the version of

my
aspnet_isapi.dl l is 1.1.4322.2032
There is no other load - the webservice is on my local machine and no-one
else is accessing it.

CODE THAT ACCESSES THE SERVICE
private void cmdBegin_Click( object sender, System.EventArg s e)
{
try
{

localhost.Servi ce1 x = new localhost.Servi ce1();
// x.Timeout = 90000;
// x.Timeout = -1;
x.HelloWorld();
System.Diagnost ics.Debug.Write Line(x.HelloWor ld());
}
catch(Exception exct)
{
System.Diagnost ics.Debug.Write Line(exct.Messa ge.ToString());
// System.Diagnost ics.Debug.Write Line(exct.Sourc e.ToString());
System.Diagnost ics.Debug.Write Line("INNER EXCEPTION" +
exct.InnerExcep tion.StackTrace .ToString());
System.Diagnost ics.Debug.Write Line(exct.Stack Trace.ToString( ));
}
}
I also have the entire app itself but I am not sure how to upload it and
where you can download it from. I have written a simple HelloWorld

Webservice
and a simple WindowsApplicat ion1 that calls the HelloWorld webservice.

ERROR STACK TRACE

'WindowsApplica tion1.exe': Loaded 'lu6vo1n4', No symbols loaded.
The underlying connection was closed: An unexpected error occurred on a
receive.
An unhandled exception of type 'System.NullRef erenceException ' occurred

in
WindowsApplicat ion1.exe

Additional information: Object reference not set to an instance of an

object.


Unhandled Exception: System.NullRefe renceException: Object reference not

set
to an instance of an object.
at WindowsApplicat ion1.Form1.cmdB egin_Click(Obje ct sender, EventArgs

e)
in d:\windowsappli cation1\form1.c s:line 105
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.DebuggableC allback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows. Forms.UnsafeNat iveMethods.Disp atchMessageW(MS G& msg)
at

System.Windows. Forms.Component Manager.System. Windows.Forms.U nsafeNativeMeth o
ds+IMsoComponen tManager.FPushM essageLoop(Int3 2
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows. Forms.ThreadCon text.RunMessage LoopInner(Int32

reason,
ApplicationCont ext context)
at System.Windows. Forms.ThreadCon text.RunMessage Loop(Int32 reason,
ApplicationCont ext context)
at System.Windows. Forms.Applicati on.Run(Form mainForm)
at WindowsApplicat ion1.Form1.Main () in
d:\windowsappli cation1\form1.c s:line 84The program '[2816]
WindowsApplicat ion1.exe' has exited with code 0 (0x0).
"Daniel Roth [MSFT]" wrote:

> Hello,
>
> A couple of questions that might help me understand your issue:
>
> Could you please post the complete exception text and stack trace? It

would be helpful to know exactly what error you are seeing. Also, if there
any inner
exceptions, that
> information would be useful as well.
>
> If possible, could you please post the code you are using to access the

webservice? Also, please confirm that you are able to access the web
service through
the
> browser, but not using your application code.
>
> Is SP1 for the .Net Framework 1.1 installed?
>
> Is there any other load on the server, or is the server just receiving

the single web service call?
>
> Thank you for your patience.
>
> Daniel Roth
>
>
> --------------------
> Thread-Topic: Underlying connection was closed
> thread-index: AcTI98jEurcOKG+ ITEmrlPwWvBgISA ==
> X-WBNR-Posting-Host: 163.188.94.164
> From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
> References: <99************ *************** *@phx.gbl>
> Subject: RE: Underlying connection was closed
> Date: Fri, 12 Nov 2004 12:40:02 -0800
> Lines: 37
> Message-ID: <8F************ *************** *******@microso ft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 7bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
> NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29

> Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
> Xref: cpmsftngxa10.ph x.gbl

microsoft.publi c.dotnet.framew ork.webservices :7407
> X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
>
> I have a similar issue. My webservice will work on browser but my

windows app
> cannot access it.
>
> My original error message used to be the underlying connection was

closed.
> I am using .NET framework 1.1 and IIS 5.0 on W2K.
>
> Now, I get an operation timed-out error.
>
> I have tried pretty much everything from all news-groups and am

desperate to
> find a fix for this.
>
> "Rajeev Tipnis" wrote:
>
> > 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 23 '05 #26
I'm also having trouble with intermittent failures on calls to one of my web
services.

It happens in bunches of 5-10 around 5 or 6 times a day on one client and
very intermittently at others (once a month)
As a test I installed a windows service that connected to the same folder on
the web server and downloaded a file once a minute. It never had any trouble

Web server: Windows 2003
IIS on the Web server: 6
Dev env: VS .Net 2003 v7.1.3088
We are using advanced digest authentication.
VB.net for the ws and the client.

I have checked/unchecked http keep-alives on the web server
I have upped the timeout in IIS on the web server to something ridiculous

System.Net.WebE xception: The underlying connection was closed: An unexpected
error occurred on a receive. at
System.Web.Serv ices.Protocols. WebClientProtoc ol.GetWebRespon se(WebRequest
request) at
System.Web.Serv ices.Protocols. HttpWebClientPr otocol.GetWebRe sponse(WebReque st
request) at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters) at
QIS_RapidServic e.com.quors.rap id.Utilities.Lo gRapidSessionIn fo(String
strMachineName, String strDealer, Int32 iNumberOfFilesR eadyToSend, Int32
iNumberOfFilesS ent, Int32 iNumberOfFilesR eceived, DateTime dtSessionStarte d,
DateTime dtSessionEnded, Int32 iSessionTimedOu t, String& strErrorToRetur n) in
H:\QIS_RAPID\QI S_RapidService\ Web
References\com. quors.rapid\Ref erence.vb:line 47 at
QIS_RapidServic e.QISRapidServi ce.LogSessionIn fo(DateTime dtSessionStarte d,
DateTime dtSessionEnded, Boolean blnSessionTimed Out, String strDealer) in
H:\QIS_RAPID\QI S_RapidService\ QISRapidService .vb:line 399

"Daniel Roth [MSFT]" wrote:
Hello,

A couple of questions that might help me understand your issue:

Could you please post the complete exception text and stack trace? It would be helpful to know exactly what error you are seeing. Also, if there any inner exceptions, that
information would be useful as well.

If possible, could you please post the code you are using to access the webservice? Also, please confirm that you are able to access the web service through the
browser, but not using your application code.

Is SP1 for the .Net Framework 1.1 installed?

Is there any other load on the server, or is the server just receiving the single web service call?

Thank you for your patience.

Daniel Roth
--------------------
Thread-Topic: Underlying connection was closed
thread-index: AcTI98jEurcOKG+ ITEmrlPwWvBgISA ==
X-WBNR-Posting-Host: 163.188.94.164
From: "=?Utf-8?B?c3ViaGE=?=" <su***@discussi ons.microsoft.c om>
References: <99************ *************** *@phx.gbl>
Subject: RE: Underlying connection was closed
Date: Fri, 12 Nov 2004 12:40:02 -0800
Lines: 37
Message-ID: <8F************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.1.29
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl
Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.webservices :7407
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I have a similar issue. My webservice will work on browser but my windows app
cannot access it.

My original error message used to be the underlying connection was closed.
I am using .NET framework 1.1 and IIS 5.0 on W2K.

Now, I get an operation timed-out error.

I have tried pretty much everything from all news-groups and am desperate to
find a fix for this.

"Rajeev Tipnis" wrote:
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 23 '05 #27

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
24763
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
3511
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
4078
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
9586
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
9423
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
10210
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
10043
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
9990
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
5298
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...
1
3956
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
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
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.