473,881 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout Calling Web Service

Timeout Calling Web Service

I am calling a .NET 1.1 web service from an aspx page. The web service can
take several minutes to complete its tasks before returning a message to the
aspx page.

If the web service is taking a long time to complete, the aspx page returns
a ‘The operation has timed-out.’ Message to the web browser after 100 seconds.

I’ve added: <httpRuntime executionTimeou t="300" /> to the web.config files
of both the web application and web service, and set Server.ScriptTi meout
=300, but neither setting prevents the timeout.

My machine.config has executionTimeou t="90".

Any thoughts on a solution would be appreciated

--
Mike
Nov 23 '05 #1
3 9112
Hi Mike,

Welcome to MSDN newsgroup.
From your description, you're calling an ASP.NET webservice from another
ASP.NET web application's aspx page. Since the WebService's method will
take long time to finish, you'll encounter timeout exception in the aspx
page. However, after you've configued the HttpRuntime executionTimeou t and
ScriptTimeout property in web.config and code, you're stilling suffer this
timeout problem, yes?

As for this problem, here are two things we may check first:

1. For .net webservice , the client proxy (which derived from
SoapHttpClientP rotocol) also contains a property named "Timeout" , have you
also configured this property in your code? If not, you can also try it (it
is in milliseconds... )

2. As for the ASP.NET page's HttpRuntime executionTimeou t setting, it will
works as the configued value ( in machine.config or web.config...) when the
application is not under debug mode (<compilation debug="false" ...>) .
While in debug mode, the executionTimeou t won't obey the configuration
setting. So please also verify this ...

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: Timeout Calling Web Service
| thread-index: AcXo9FrV6Rvfrvl YTxCerEOfYdtKdg ==
| X-WBNR-Posting-Host: 80.6.93.157
| From: "=?Utf-8?B?TWlrZQ==?=" <op*****@newsgr oups.nospam>
| Subject: Timeout Calling Web Service
| Date: Mon, 14 Nov 2005 00:21:04 -0800
| Lines: 19
| Message-ID: <36************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGXA03.phx .gbl
| Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:303882
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| Timeout Calling Web Service
|
| I am calling a .NET 1.1 web service from an aspx page. The web service
can
| take several minutes to complete its tasks before returning a message to
the
| aspx page.
|
| If the web service is taking a long time to complete, the aspx page
returns
| a ‘The operation has timed-out.?Message to the web browser after 100
seconds.
|
| I’ve added: <httpRuntime executionTimeou t="300" /> to the web.config
files
| of both the web application and web service, and set Server.ScriptTi meout
| =300, but neither setting prevents the timeout.
|
| My machine.config has executionTimeou t="90".
|
| Any thoughts on a solution would be appreciated
|
| --
| Mike
|

Nov 23 '05 #2
Steven,

Increasing the timeout for the client proxy resolved the problem.

Thanks for your help.

--
Mike
"Steven Cheng[MSFT]" wrote:
Hi Mike,

Welcome to MSDN newsgroup.
From your description, you're calling an ASP.NET webservice from another
ASP.NET web application's aspx page. Since the WebService's method will
take long time to finish, you'll encounter timeout exception in the aspx
page. However, after you've configued the HttpRuntime executionTimeou t and
ScriptTimeout property in web.config and code, you're stilling suffer this
timeout problem, yes?

As for this problem, here are two things we may check first:

1. For .net webservice , the client proxy (which derived from
SoapHttpClientP rotocol) also contains a property named "Timeout" , have you
also configured this property in your code? If not, you can also try it (it
is in milliseconds... )

2. As for the ASP.NET page's HttpRuntime executionTimeou t setting, it will
works as the configued value ( in machine.config or web.config...) when the
application is not under debug mode (<compilation debug="false" ...>) .
While in debug mode, the executionTimeou t won't obey the configuration
setting. So please also verify this ...

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: Timeout Calling Web Service
| thread-index: AcXo9FrV6Rvfrvl YTxCerEOfYdtKdg ==
| X-WBNR-Posting-Host: 80.6.93.157
| From: "=?Utf-8?B?TWlrZQ==?=" <op*****@newsgr oups.nospam>
| Subject: Timeout Calling Web Service
| Date: Mon, 14 Nov 2005 00:21:04 -0800
| Lines: 19
| Message-ID: <36************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGXA03.phx .gbl
| Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:303882
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| Timeout Calling Web Service
|
| I am calling a .NET 1.1 web service from an aspx page. The web service
can
| take several minutes to complete its tasks before returning a message to
the
| aspx page.
|
| If the web service is taking a long time to complete, the aspx page
returns
| a ‘The operation has timed-out.�Messa ge to the web browser after 100
seconds.
|
| I’ve added: <httpRuntime executionTimeou t="300" /> to the web.config
files
| of both the web application and web service, and set Server.ScriptTi meout
| =300, but neither setting prevents the timeout.
|
| My machine.config has executionTimeou t="90".
|
| Any thoughts on a solution would be appreciated
|
| --
| Mike
|

Nov 23 '05 #3
You're welcome Mike,

Good luck!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: Timeout Calling Web Service
| thread-index: AcXpKvtLqHnOQV/SRoi+nCnYi8y4ZQ ==
| X-WBNR-Posting-Host: 80.6.93.157
| From: "=?Utf-8?B?TWlrZQ==?=" <op*****@newsgr oups.nospam>
| References: <36************ *************** *******@microso ft.com>
<Wj************ **@TK2MSFTNGXA0 2.phx.gbl>
| Subject: RE: Timeout Calling Web Service
| Date: Mon, 14 Nov 2005 06:52:06 -0800
| Lines: 98
| Message-ID: <95************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGXA03.phx .gbl
| Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:303942
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| Steven,
|
| Increasing the timeout for the client proxy resolved the problem.
|
| Thanks for your help.
|
| --
| Mike
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Mike,
| >
| > Welcome to MSDN newsgroup.
| > From your description, you're calling an ASP.NET webservice from
another
| > ASP.NET web application's aspx page. Since the WebService's method will
| > take long time to finish, you'll encounter timeout exception in the
aspx
| > page. However, after you've configued the HttpRuntime executionTimeou t
and
| > ScriptTimeout property in web.config and code, you're stilling suffer
this
| > timeout problem, yes?
| >
| > As for this problem, here are two things we may check first:
| >
| > 1. For .net webservice , the client proxy (which derived from
| > SoapHttpClientP rotocol) also contains a property named "Timeout" , have
you
| > also configured this property in your code? If not, you can also try it
(it
| > is in milliseconds... )
| >
| > 2. As for the ASP.NET page's HttpRuntime executionTimeou t setting, it
will
| > works as the configued value ( in machine.config or web.config...) when
the
| > application is not under debug mode (<compilation debug="false" ...>) .
| > While in debug mode, the executionTimeou t won't obey the configuration
| > setting. So please also verify this ...
| >
| > Hope helps. Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| > --------------------
| > | Thread-Topic: Timeout Calling Web Service
| > | thread-index: AcXo9FrV6Rvfrvl YTxCerEOfYdtKdg ==
| > | X-WBNR-Posting-Host: 80.6.93.157
| > | From: "=?Utf-8?B?TWlrZQ==?=" <op*****@newsgr oups.nospam>
| > | Subject: Timeout Calling Web Service
| > | Date: Mon, 14 Nov 2005 00:21:04 -0800
| > | Lines: 19
| > | Message-ID: <36************ *************** *******@microso ft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 8bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| > | NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGXA03.phx .gbl
| > | Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.langua ges.vb:303882
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
| > |
| > | Timeout Calling Web Service
| > |
| > | I am calling a .NET 1.1 web service from an aspx page. The web
service
| > can
| > | take several minutes to complete its tasks before returning a message
to
| > the
| > | aspx page.
| > |
| > | If the web service is taking a long time to complete, the aspx page
| > returns
| > | a ‘The operation has timed-out.â?Messag e to the web browser
after 100
| > seconds.
| > |
| > | I’ve added: <httpRuntime executionTimeou t="300" /> to the
web.config
| > files
| > | of both the web application and web service, and set
Server.ScriptTi meout
| > | =300, but neither setting prevents the timeout.
| > |
| > | My machine.config has executionTimeou t="90".
| > |
| > | Any thoughts on a solution would be appreciated
| > |
| > | --
| > | Mike
| > |
| >
| >
|

Nov 23 '05 #4

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

Similar topics

0
513
by: Carson Saunders | last post by:
I have a C# client application that calls a web service. I implement the CookieContainer class on the client to ensure the session is kept. However, I'm having trouble with the session timeout. I have set the timeout to be one minute and have done this in IIS, in web.config, and in global.asax. My problem/question relates to the re-use of the session ID. When I start my client app, I retrieve the session ID from the web service by...
2
1955
by: dayblue | last post by:
My question has to do with the process of calling web services. Typically when the client calls a web service they can specify the timeout for the call. My question is how the actual web service or individual method can police this parameter so as to maintain better control. Some of the web methods can accept larger arrays of objects which much be processed individually. In that case I would like to be able to set a longer timeout. ...
0
4031
by: Kim | last post by:
Hi, I am calling a web service from a hand held terminal (running Pocket pc 2002) using the SoapHttpClientProtocol class. Sometimes the terminal gets out of network coverage - in that case I want the terminal to be able to work offline using a cradle. The problem is that when I call the web service (Invoke(), see code below) and during the call loses the connection, the terminal can hang for a very long time in the call (10 minutes or...
0
3586
by: Joe L via .NET 247 | last post by:
I have written a web part. The webpart calls a web service toget info. I ran into problems with the webservice notresponding. We decided to have a cutoff for the time to waitfor a response from the web service. I am setting the Timeouton the webservice proxy before calling the webservice method. Iam not getting the results I expected. Below is the code andthe exception I get. ... Results results = null; try { MyWebService mws =...
0
271
by: Mike | last post by:
I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. If the web service is taking a long time to complete, the aspx page returns a ‘The operation has timed-out.’ Message to the web browser after 100 seconds. I’ve added: <httpRuntime executionTimeout="300" /> to the web.config files of both the web application and web...
0
4527
by: archana | last post by:
Hi all I am facing some wierd problem at a time of calling web method of web service through windows application. At a time of calling one web method of web service after some amount of time i am getting following error :- Process failed. Reason :- The request failed with HTTP status 504: Proxy Timeout ( This operation returned because the timeout period expired. ).
3
2009
by: =?Utf-8?B?UmFkZWsgxb11amE=?= | last post by:
Hi. I have apllication running on WCE 5.0 - mobile computer Symbol Terminal MC9090. I calling sql insert command from the smart device by calling WebService. Sometimes i get Exception Service is TimedOut,but insert command in databse completed sucessfully. I increst timeot on 5 minut, but problem is persist. Any Idea Radek Zuja
0
2204
by: mattcfisher | last post by:
Hi, I have two windows services running together. One is the main program, and one is an "updater" wrapper for the main. The updater service starts and stops the main one (as in you should never start or stop main service manually, only updater). On most computers it works great, the updater's onStop() can start and stop the main service perfectly. On some computers, though, the updater hangs when it tries to stop the main service. It...
2
3466
by: shark | last post by:
Hi. I'm dealing with scenario when call to any web method ends up with timeout and I try to add the user a chance to retry (wait a little bit) My service proxy code looks like this: AsyncCallback cb = new AsyncCallback(ServiceCallback); IAsyncResult result1 = BeginInvoke(methodName, parameters, cb, this); if(result1.IsCompleted == false) {
0
9926
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9776
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
10716
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
10812
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,...
1
7952
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7108
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5780
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4597
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.