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

Web Service calls failing after 5 minutes

We are calling a webservice running under SSL with a request that takes
quite a while (8-12 mins) to return. This has been running fine on my
desktop machine for some time now, but when the code is deployed to the
live server, it fails after 300 seconds (5 minutes), with an error
message:

"System.Net.WebException: The underlying connection was closed: Could
not establish secure channel for SSL/TLS. ---> System.IO.IOException:
Unable to read data from the transport connection. --->
System.IO.IOException: Unable to read data from the transport
connection. ---> System.Net.Sockets.SocketException: An existing
connection was forcibly closed by the remote host"

On my machine and testing the same appears to happen after a period of
15 minutes (which is long enough that the call returns).

The actual software being executed is identical on all 3 boxes, I have
checked the machine.config file, but nothing here about timeouts.

Technical support insist that the firewall would not be responsible.

So I am at a loss to explain what is happening, or even what to try
next. One thing which is different between the two 15 minute systems
and the 5 minute system is that the live box is hosted by an external
organisation, who inevitably have their own firewalls in place around
it.

Has anybody any ideas what might be causing this?

Many thanks,
Tony

Jun 21 '06 #1
4 2571
TonyB wrote:
We are calling a webservice running under SSL with a request that takes
quite a while (8-12 mins) to return. This has been running fine on my
desktop machine for some time now, but when the code is deployed to the
live server, it fails after 300 seconds (5 minutes), with an error
message:

"System.Net.WebException: The underlying connection was closed: Could
not establish secure channel for SSL/TLS. ---> System.IO.IOException:
Unable to read data from the transport connection. --->
System.IO.IOException: Unable to read data from the transport
connection. ---> System.Net.Sockets.SocketException: An existing
connection was forcibly closed by the remote host"

On my machine and testing the same appears to happen after a period of
15 minutes (which is long enough that the call returns).

The actual software being executed is identical on all 3 boxes, I have
checked the machine.config file, but nothing here about timeouts.

Technical support insist that the firewall would not be responsible.

So I am at a loss to explain what is happening, or even what to try
next. One thing which is different between the two 15 minute systems
and the 5 minute system is that the live box is hosted by an external
organisation, who inevitably have their own firewalls in place around
it.

Has anybody any ideas what might be causing this?


You might need to tweak the executionTimeout attribute of the httpRuntime
element in your web.config file. See
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx for more information.
--
Tom Porterfield

Jun 21 '06 #2
Sorry, the web service is run by Google. Thus we have no control over
this.

Jun 21 '06 #3
A firewall most certainly *could* cause this problem, especially if it
is running NAT. All NAT gateways have a timeout for outgoing
connections. Otherwise, they would quickly run out of resources.

That aside, have you tried playing with the "Timeout" property of your
web reference?

TonyB wrote:
connection. ---> System.Net.Sockets.SocketException: An existing
connection was forcibly closed by the remote host"


Jun 21 '06 #4
We're investigating the NAT possibility - that is if Mistral can give
us this info!

The web reference timeout is set to 2h.

Many thanks,

Tony

Jun 22 '06 #5

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

Similar topics

18
by: jabailo | last post by:
I wrote a program that loops through a file of records. It parses each line in the file and sends them to a web service that inserts them into an AS400DB2 database using Asynch calls. This is...
0
by: Johyson | last post by:
Hi, I am using a windows service which does two things 1. It calls an exe which is a screen scraping program and needs to interact with the desktop. 2. It calls an web service, which...
2
by: JJ | last post by:
I have written a multi-threaded Windows service. I developed it in such a way that the core logic is a separate class library from the actual service project, so I could test the .DLL in a console. ...
1
by: rgarf | last post by:
I have a web service that is consumed by a C++ application. I added a C# dll reference to the web service, When the web service calls a method on the dll, it sends back an HRESULT of E_FAIL to my...
1
by: mithu | last post by:
I have a web service(C#) which involves processing lot of information thru a third party component. I have couple of issues with my web service. Issue 1: My web service calls a third party...
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...
1
by: lowlyscrub | last post by:
I have an ASP.NET application that makes 12 different web service calls from a single method call. Each of the web services themselves don't do much more than run a small query (I've run the...
12
by: Anil Gupte | last post by:
I wrote my Windows Service first as a regular Windows Exe because it is easier to debug. In that I used AppDir = Application.ExecutablePath.Substring(0,...
0
by: Temporary | last post by:
C# Web Service in IIS Stops Connecting to Oracle (via ADO.NET) Over Time I have a Web Service, written in C#, published on a Windows XT Web Server under IIS, which repeatedly connects to an...
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.