473,289 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

The underlying connection was closed: An unexpected error occurred on a receive.

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.

Does anyone have idea about the reason/solution for this exception?

Thanks,
Vijaya Krishna P.
Nov 23 '05 #1
5 24703
Hi Vijay,

This is a known issue. Try (on the client side) turning off the proxy
property that controls keep alives. Another option is to create/destroy
the proxy between calls. The proxy is losing the underlying connection
(HTTP can do that) and it doesn't retry when it has a connection already.

I hope this helps

Dan Rogers
Microsoft Corporation

--------------------
From: "Vijayakrishna Pondala" <pv******@hotmail.com>
Subject: The underlying connection was closed: An unexpected error occurred
on a receive.
Date: Wed, 15 Dec 2004 10:50:52 +0530
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <#d*************@TK2MSFTNGP14.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: lanner.hyd.deshaw.com 149.77.163.104
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP14
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8104
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

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.

Does anyone have idea about the reason/solution for this exception?

Thanks,
Vijaya Krishna P.

Nov 23 '05 #2
Won't there be any performance effect, due to creating a new connection for
every call?

Thanks,
Vijaya Krishna P.
Nov 23 '05 #3
Yes. Creating a connection requires 7 round trips - which amounts to
introducing 7 x your network latency, plus the time it takes for the port
listener in IIS to accept the connection. So, if you do this repeatedly,
you'll see an increase in network traffic, server CPU utilization, and some
perceptable-to-user delay in WAN situations.

The essence of the known issue is that if a connection times out, it gets
closed. This typically happens with you make a bunch of calls, pause, and
then go some more. During the pause, if the server closes the connection
(it is allowed to do this), then the proxy still tries to use the same
connection, and fails. If you can predict when the pause is, you can limit
recreating the connection to when you need to.

At least it gives you a way to manage the issue until we get a service pack
that has a fix in it out.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: "Vijayakrishna Pondala" <pv******@hotmail.com>
References: <#d*************@TK2MSFTNGP14.phx.gbl>
<AN**************@cpmsftngxa10.phx.gbl>
Subject: Re: The underlying connection was closed: An unexpected error
occurred on a receive.
Date: Thu, 16 Dec 2004 12:29:55 +0530
Lines: 7
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <#K**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: lanner.hyd.deshaw.com 149.77.163.104
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8124
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Won't there be any performance effect, due to creating a new connection for
every call?

Thanks,
Vijaya Krishna P.

Nov 23 '05 #4
Hi Dan,

In our code, we are creating the WebService class, every time a method of
the class is called. In the constructor of the WebService class, we have
been setting the Proxy property to
GlobalProxySelection.GetEmptyWebProxy(). Is this code creating the problem
in any manner?

Thanks,

Vijaya Krishna P>
"Dan Rogers" <da***@microsoft.com> wrote in message
news:AN**************@cpmsftngxa10.phx.gbl...
Hi Vijay,

This is a known issue. Try (on the client side) turning off the proxy
property that controls keep alives. Another option is to create/destroy
the proxy between calls. The proxy is losing the underlying connection
(HTTP can do that) and it doesn't retry when it has a connection already.

I hope this helps

Dan Rogers
Microsoft Corporation

--------------------
From: "Vijayakrishna Pondala" <pv******@hotmail.com>
Subject: The underlying connection was closed: An unexpected error occurred on a receive.
Date: Wed, 15 Dec 2004 10:50:52 +0530
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <#d*************@TK2MSFTNGP14.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: lanner.hyd.deshaw.com 149.77.163.104
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP14 phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8104
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

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.

Does anyone have idea about the reason/solution for this exception?

Thanks,
Vijaya Krishna P.

Nov 23 '05 #5
Hi Vijay,
It might be an issue. I'm not sure what an empty WebProxy class does - I
suspect you have to set up the properties of that class for your
connections to succeed.

Regards,

Dan
--------------------
From: "Vijayakrishna Pondala" <pv******@hotmail.com>
References: <#d*************@TK2MSFTNGP14.phx.gbl>
<AN**************@cpmsftngxa10.phx.gbl>
Subject: Re: The underlying connection was closed: An unexpected error
occurred on a receive.
Date: Mon, 20 Dec 2004 12:08:19 +0530
Lines: 68
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <uB**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: lanner.hyd.deshaw.com 149.77.163.104
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8198
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Dan,

In our code, we are creating the WebService class, every time a method of
the class is called. In the constructor of the WebService class, we have
been setting the Proxy property to
GlobalProxySelection.GetEmptyWebProxy(). Is this code creating the problem
in any manner?

Thanks,

Vijaya Krishna P>
"Dan Rogers" <da***@microsoft.com> wrote in message
news:AN**************@cpmsftngxa10.phx.gbl...
Hi Vijay,

This is a known issue. Try (on the client side) turning off the proxy
property that controls keep alives. Another option is to create/destroy
the proxy between calls. The proxy is losing the underlying connection
(HTTP can do that) and it doesn't retry when it has a connection already.

I hope this helps

Dan Rogers
Microsoft Corporation

--------------------
From: "Vijayakrishna Pondala" <pv******@hotmail.com>
Subject: The underlying connection was closed: An unexpected error occurred on a receive.
Date: Wed, 15 Dec 2004 10:50:52 +0530
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <#d*************@TK2MSFTNGP14.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: lanner.hyd.deshaw.com 149.77.163.104
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP14 phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8104
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

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.

Does anyone have idea about the reason/solution for this exception?

Thanks,
Vijaya Krishna P.


Nov 23 '05 #6

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

Similar topics

1
by: Angel | last post by:
I'm trying to connect to a fixed IP address (eg. http://10.60.903.50/TempFile) in order to retrieve one accii line of text in TempFile. I try to read the information with this code: string...
26
by: Rajeev Tipnis | last post by:
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...
0
by: Chris John | last post by:
G'day, I've got a bit of a curly problem. I have a smart client application that talks to a Java/Axis server. Everything has been working fine except for one of our clients machines we get the...
1
by: Fredrik L | last post by:
Hi, We have an application outside the firewall who talks to a webservice inside the firewall. 9 times of 10 this works, but sometimes we got the error "The underlying connection was closed: An...
0
by: tharika | last post by:
Hi, We have an ASP.NET web application hosted on a development server, that invokes web services hosted on an offshore server in India, both being on the same intranet domain. The default...
1
by: matt | last post by:
hello, i am using a .NET 1.1 winform to perform webrequests via the System.Net.WebClient class (not a webservice, actually). It uploads values via a POST command & a URL, then receives the html...
3
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...
0
by: imonline | last post by:
Hi, I have created a asp.net page which posts XML on the web service using .net 2.0. The page and the webservice was working fine but once I converted them to .net 3.5 I have been getting...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.