473,387 Members | 1,575 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,387 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 24710
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...

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.