473,655 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout on long-running web service

I have a timeout issue with a long running web service, and I can't figure
out where
the timeout value is coming from. In the client I end up getting the
following exception:

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
Microsoft.Web.S ervices2.WebSer vicesClientProt ocol.GetWebResp onse(WebRequest
request)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)
at ExchangeClient. localhost.DataE xchangeWse.Impo rt(String UserName,
String Password, DataType Type, ImportOperation Op) in C:\Documents and
Settings\gallen \ArrAy\HC\src\V oyager\Subproje cts\DataExchang e\ExchangeClien t\Web
References\loca lhost\Reference .vb:line 42
at ExchangeClient. ThreadData.RunT hread() in C:\Documents and
Settings\gallen \ArrAy\HC\src\V oyager\Subproje cts\DataExchang e\ExchangeClien t\MainFrm.vb:li ne
520

If I run the both web service and the client on my local machine, it runs in
about
700 seconds without issue.

When I try to run using a web service on a different machine, I get the
exception above. I have
checked both the machine.config and the web.config on the web service
machine, and
can't find any timeout setting that would be causing this to happen.

This happens *every* time at about 600 seconds, so I suspect there is a
timeout value
somewhere that I should be setting. I've tried everything I can think of,
and executionTimeou t is
set in the web.config:

<httpRuntime executionTimeou t="900" />

This is of course more than the 600 seconds I am seeing when the timeout
happens (at
around 600 seconds).

I also compared my local machine.config and web.config with the remote ones,
but
they don't appear to have significant differences.

Can anyone help?

Thanks,

-- Greg Allen


Jan 18 '06 #1
1 10427
Maybe the Timeout in the IIS Server is different.
Also, you can set a client timeout in the webservice proxy class.
You can try to call the webservice asynchronously and see what happens.

Just a few tips.

"Greg Allen" wrote:
I have a timeout issue with a long running web service, and I can't figure
out where
the timeout value is coming from. In the client I end up getting the
following exception:

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
Microsoft.Web.S ervices2.WebSer vicesClientProt ocol.GetWebResp onse(WebRequest
request)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)
at ExchangeClient. localhost.DataE xchangeWse.Impo rt(String UserName,
String Password, DataType Type, ImportOperation Op) in C:\Documents and
Settings\gallen \ArrAy\HC\src\V oyager\Subproje cts\DataExchang e\ExchangeClien t\Web
References\loca lhost\Reference .vb:line 42
at ExchangeClient. ThreadData.RunT hread() in C:\Documents and
Settings\gallen \ArrAy\HC\src\V oyager\Subproje cts\DataExchang e\ExchangeClien t\MainFrm.vb:li ne
520

If I run the both web service and the client on my local machine, it runs in
about
700 seconds without issue.

When I try to run using a web service on a different machine, I get the
exception above. I have
checked both the machine.config and the web.config on the web service
machine, and
can't find any timeout setting that would be causing this to happen.

This happens *every* time at about 600 seconds, so I suspect there is a
timeout value
somewhere that I should be setting. I've tried everything I can think of,
and executionTimeou t is
set in the web.config:

<httpRuntime executionTimeou t="900" />

This is of course more than the 600 seconds I am seeing when the timeout
happens (at
around 600 seconds).

I also compared my local machine.config and web.config with the remote ones,
but
they don't appear to have significant differences.

Can anyone help?

Thanks,

-- Greg Allen


Jan 19 '06 #2

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

Similar topics

3
5186
by: Hermes | last post by:
Hi All, Is there a way to specify the server timeout for IIS in an asp file rather than with IIS. As I would just want one page to have a long timeout period but limit the other pages in the site. Kind regards, Hermes
3
2801
by: Craig Storey | last post by:
I have a form where users logged in using sessions can edit articles in a WYSIWYG editor. Some of them take their time and don't like to save their work very often and occassionally the sessions expire and their work goes poof. (I've suggested editing off-line and simply copy+paste but they prefer the editor.) After a lot of searching I've found the main culprit is session.gc_maxlifetime and I can set it longet like... ...
12
43189
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
4
3923
by: Paul | last post by:
I sometimes get a timeout error when populating my datagrid, the code is WizardConnection.Open() UpdateCommand.CommandText = "EXECUTE sp_assign_user '" & PhysOffice.SelectedValue & "', '" & Context.User.Identity.Name & "'" UpdateCommand.ExecuteNonQuery()
3
3105
by: Barb Alderton | last post by:
I wrote a asp.net app for a client to enter Purchase Requisitions for IT purchases (using Session variables). The users want the session timeout to be set to at least an hour because they are constantly interrupted when entering PRs. I know I can change it in the web.config but is there any cons to making the timeout that long or even longer? Another question, can the timeout be programmatically changed based on the user minimizing...
15
10984
by: dee | last post by:
Hi, What is the maximum number of minutes for Session timeout that I can specify in web.config? Thanks. Dee
6
7776
by: Martin Eyles | last post by:
I am trying to perform a very long query on an MSSQL database, using ASP.NET, and making the code behind in VB.NET. I have been receiving timeout error, so I thought I would add Connect Timeout to my connection string. However this appears to have no effect. The connection string is set up as follows Dim conn As New SqlClient.SqlConnection("Data Source=serverName; User ID=userName; Password=password; Connect Timeout=9999") Any ideas...
5
7684
by: John Nagle | last post by:
I thought I had all the timeout problems with urllib worked around, but no. socket.setdefaulttimeout is useful, but not always effective. I'm setting that to 15 seconds. If the host end won't open the connection within 15 seconds, urllib times out. But if the host end opens the connection, then never sends anything, urllib waits for many minutes before timing out. Any idea how to deal with this? And don't just say "use urllib2"...
4
2329
by: Nathan Sokalski | last post by:
I have a page that uses Session variables when generating the SQL statements used to submit and retrieve data from a database. However, because I don't know how long the user will be on the page, setting the Session.Timeout property doesn't help me avoid errors (I can obviously set the value to a very high value, but that still doesn't completely solve the problem). Is there any way for me to avoid the Session timing out? Thanks. --...
7
3048
by: David Thielen | last post by:
Hi; How do I set how long until IIS 7 drops a session for an ASP.NET 2.0 web app? I want to set it for 8 hours. thanks - dave david@at-at-at@windward.dot.dot.net Windward Reports -- http://www.WindwardReports.com me -- http://dave.thielen.com
0
8380
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
8296
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
8816
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
8710
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
8497
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
8598
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1598
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.