473,388 Members | 1,220 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,388 software developers and data experts.

Web Service Hangs (Other Post may not have Subject Line, Sorry)

JD
Hello,

I'm experiencing a problem that I'm hoping someone might be able to shed
some light on.

I have an ASP.NET page on a Windows 2000 machine that makes web service
calls to a .NET web service. Once in a while the ASP.NET process gets to a
state where the web service call to the web service hangs and then does a
timeout. While the ASP.NET process is in this state, looking at the TCP
connections, the TCP connection never shows up for the web service request.
I've seen it start happening after a week, and then sometimes after a couple
of months, pretty random. If I kill the ASP.NET process, all is well again.

I created an ASPX file that does various tests while the ASP.NET process is
in this state and here are some of the results:
- If I hit the web service with a browser from the ASP.NET machine its able
to retrieve web service's method descriptions and soap message layout. This
does not involve my ASPX test file. Looking at the TCP connections, the
connection shows up.
- If I do a HTTP web request to the web service from the ASPX file that is
run inside the problem ASP.NET process, it hangs and times out. Looking at
the TCP connections, it does not show up at all.
- If I do any HTTP web request to the web service server from the ASPX file
that is run inside the problem ASP.NET process, it hangs and times out.
Looking at the TCP connections, it does not show up at all.
- If I do a HTTP web request to any other server than the web service server
from the ASPX file that is run inside the problem ASP.NET process, it
succeeds. Looking at the TCP connections, the connection shows up.
- If I do a TCP connect on port 80 to the web service server from the ASPX
file that is run inside the problem ASP.NET process, it succeeds. Looking at
the TCP connections, the connection shows up.

The code that does the web service call uses the Visual Studio
auto-generated proxy. At first I looked at the proxy code to see if I should
be doing a dispose or close of some sort but it doesn't look like I need to.
If I had to guess it looks like there is some sort of pooling going on
within the HTTP library, and what ever is getting pooled for that server is
either deadlocked or in a bad state. Any ideas?

TIA
JD


Nov 21 '05 #1
2 4547
JD,
I am facing the same problem. Have you found a resolution or at least
more details on a specific cause?

TIA,
Eric

"JD" <no@address.org> wrote in message news:<uN*************@TK2MSFTNGP09.phx.gbl>...
Hello,

I'm experiencing a problem that I'm hoping someone might be able to shed
some light on.

I have an ASP.NET page on a Windows 2000 machine that makes web service
calls to a .NET web service. Once in a while the ASP.NET process gets to a
state where the web service call to the web service hangs and then does a
timeout. While the ASP.NET process is in this state, looking at the TCP
connections, the TCP connection never shows up for the web service request.
I've seen it start happening after a week, and then sometimes after a couple
of months, pretty random. If I kill the ASP.NET process, all is well again.

I created an ASPX file that does various tests while the ASP.NET process is
in this state and here are some of the results:
- If I hit the web service with a browser from the ASP.NET machine its able
to retrieve web service's method descriptions and soap message layout. This
does not involve my ASPX test file. Looking at the TCP connections, the
connection shows up.
- If I do a HTTP web request to the web service from the ASPX file that is
run inside the problem ASP.NET process, it hangs and times out. Looking at
the TCP connections, it does not show up at all.
- If I do any HTTP web request to the web service server from the ASPX file
that is run inside the problem ASP.NET process, it hangs and times out.
Looking at the TCP connections, it does not show up at all.
- If I do a HTTP web request to any other server than the web service server
from the ASPX file that is run inside the problem ASP.NET process, it
succeeds. Looking at the TCP connections, the connection shows up.
- If I do a TCP connect on port 80 to the web service server from the ASPX
file that is run inside the problem ASP.NET process, it succeeds. Looking at
the TCP connections, the connection shows up.

The code that does the web service call uses the Visual Studio
auto-generated proxy. At first I looked at the proxy code to see if I should
be doing a dispose or close of some sort but it doesn't look like I need to.
If I had to guess it looks like there is some sort of pooling going on
within the HTTP library, and what ever is getting pooled for that server is
either deadlocked or in a bad state. Any ideas?

TIA
JD

Nov 21 '05 #2
This is just a wild guess, but it sounds like you might be running into the
"at most two outbound connections from one client to the same HTTP server"
limitation (as per HTTP 1.1 specification). To work around the problem you
can try increasing this value from 2 through the maxconnection attribute in
web.config.

Note that increasing the value does not really solve the problem, it merely
postpones it.

The outbound connection limit could be causing the problem because if the
web page request (which is making the outbound web service call) times out
before the web service call completes, then it might leak the socket. If
this happens twice, then the next outbound call to the same web service will
block until the web application is restarted.

If this indeed is the source of the problem, to really solve it, apply the
recommendations in [1] to make sure the outbound web service calls get
cleaned up properly.

[1]
http://msdn.microsoft.com/library/de...netchapt10.asp
(the section about Timeouts).

Regards,
Sami

"JD" <no@address.org> wrote in message
news:uN*************@TK2MSFTNGP09.phx.gbl...
Hello,

I'm experiencing a problem that I'm hoping someone might be able to shed
some light on.

I have an ASP.NET page on a Windows 2000 machine that makes web service
calls to a .NET web service. Once in a while the ASP.NET process gets to a
state where the web service call to the web service hangs and then does a
timeout. While the ASP.NET process is in this state, looking at the TCP
connections, the TCP connection never shows up for the web service request. I've seen it start happening after a week, and then sometimes after a couple of months, pretty random. If I kill the ASP.NET process, all is well again.
I created an ASPX file that does various tests while the ASP.NET process is in this state and here are some of the results:
- If I hit the web service with a browser from the ASP.NET machine its able to retrieve web service's method descriptions and soap message layout. This does not involve my ASPX test file. Looking at the TCP connections, the
connection shows up.
- If I do a HTTP web request to the web service from the ASPX file that is
run inside the problem ASP.NET process, it hangs and times out. Looking at
the TCP connections, it does not show up at all.
- If I do any HTTP web request to the web service server from the ASPX file that is run inside the problem ASP.NET process, it hangs and times out.
Looking at the TCP connections, it does not show up at all.
- If I do a HTTP web request to any other server than the web service server from the ASPX file that is run inside the problem ASP.NET process, it
succeeds. Looking at the TCP connections, the connection shows up.
- If I do a TCP connect on port 80 to the web service server from the ASPX
file that is run inside the problem ASP.NET process, it succeeds. Looking at the TCP connections, the connection shows up.

The code that does the web service call uses the Visual Studio
auto-generated proxy. At first I looked at the proxy code to see if I should be doing a dispose or close of some sort but it doesn't look like I need to. If I had to guess it looks like there is some sort of pooling going on
within the HTTP library, and what ever is getting pooled for that server is either deadlocked or in a bad state. Any ideas?

TIA
JD

Nov 21 '05 #3

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

Similar topics

0
by: Nathan | last post by:
This is a copy of a message at microsoft.public.dotnet.framework.clr: THE CODE: I'm using an HttpWebResponse object to send an HTTP POST to a Java server I have written and are running on the...
4
by: Kris | last post by:
I have a Windows Service in C# talking to a serial port and using Remoting. It also uses several COM objects. On customer's computer the service will occassionally hang somewhere - the service...
5
by: Stu Carter | last post by:
Hi, ENV: Windows 2003 Server SP1 (+all updates), VS 2003, .Net 1.1 SP1 We've got an ASP.Net web application using State Service. All is fine until we tried to use the app through a virtual...
3
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
by: Trevor | last post by:
Argh! This problem is driving me nuts! Can you help? In November of 2003, I installed a web service on Windows Server 2003 built in VB.NET for v1.1.4322 of the framework. It contains a timer...
2
by: Pierre Rouleau | last post by:
Hi all, I have a consistent test case where os.popen3() hangs in Windows. The system hangs when retrieving the lines from the child process stdout. I know there were several reports related to...
37
by: PeterOut | last post by:
I am using MS Visual C++ 6.0 on Windows XP 5.1 (SP2). I am not sure if this is a C, C++ or MS issue but fscanf has been randomly hanging on me. I make the call hundreds, if not thousands, of...
2
by: =?Utf-8?B?SnVsaWFu?= | last post by:
My first problem is: I am having an issue when using a web service. The web service is written by another department and say its running fine but when I call it, I sometimes I get a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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...
0
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...

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.