473,326 Members | 2,588 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,326 software developers and data experts.

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 executionTimeout="300" /> to the web.config files
of both the web application and web service, and set Server.ScriptTimeout
=300, but neither setting prevents the timeout.

My machine.config has executionTimeout="90".

Any thoughts on a solution would be appreciated

--
Mike
Nov 23 '05 #1
3 9021
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 executionTimeout 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
SoapHttpClientProtocol) 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 executionTimeout 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 executionTimeout 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: AcXo9FrV6RvfrvlYTxCerEOfYdtKdg==
| X-WBNR-Posting-Host: 80.6.93.157
| From: "=?Utf-8?B?TWlrZQ==?=" <op*****@newsgroups.nospam>
| Subject: Timeout Calling Web Service
| Date: Mon, 14 Nov 2005 00:21:04 -0800
| Lines: 19
| Message-ID: <36**********************************@microsoft.co m>
| 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.public.dotnet.languages.vb
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.vb:303882
| X-Tomcat-NG: microsoft.public.dotnet.languages.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 executionTimeout="300" /> to the web.config
files
| of both the web application and web service, and set Server.ScriptTimeout
| =300, but neither setting prevents the timeout.
|
| My machine.config has executionTimeout="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 executionTimeout 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
SoapHttpClientProtocol) 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 executionTimeout 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 executionTimeout 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: AcXo9FrV6RvfrvlYTxCerEOfYdtKdg==
| X-WBNR-Posting-Host: 80.6.93.157
| From: "=?Utf-8?B?TWlrZQ==?=" <op*****@newsgroups.nospam>
| Subject: Timeout Calling Web Service
| Date: Mon, 14 Nov 2005 00:21:04 -0800
| Lines: 19
| Message-ID: <36**********************************@microsoft.co m>
| 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.public.dotnet.languages.vb
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.vb:303882
| X-Tomcat-NG: microsoft.public.dotnet.languages.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 executionTimeout="300" /> to the web.config
files
| of both the web application and web service, and set Server.ScriptTimeout
| =300, but neither setting prevents the timeout.
|
| My machine.config has executionTimeout="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*****@newsgroups.nospam>
| References: <36**********************************@microsoft.co m>
<Wj**************@TK2MSFTNGXA02.phx.gbl>
| Subject: RE: Timeout Calling Web Service
| Date: Mon, 14 Nov 2005 06:52:06 -0800
| Lines: 98
| Message-ID: <95**********************************@microsoft.co m>
| 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.public.dotnet.languages.vb
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.vb:303942
| X-Tomcat-NG: microsoft.public.dotnet.languages.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 executionTimeout
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
| > SoapHttpClientProtocol) 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 executionTimeout 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 executionTimeout 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: AcXo9FrV6RvfrvlYTxCerEOfYdtKdg==
| > | X-WBNR-Posting-Host: 80.6.93.157
| > | From: "=?Utf-8?B?TWlrZQ==?=" <op*****@newsgroups.nospam>
| > | Subject: Timeout Calling Web Service
| > | Date: Mon, 14 Nov 2005 00:21:04 -0800
| > | Lines: 19
| > | Message-ID: <36**********************************@microsoft.co m>
| > | 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.public.dotnet.languages.vb
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.languages.vb:303882
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.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 executionTimeout="300" /> to the
web.config
| > files
| > | of both the web application and web service, and set
Server.ScriptTimeout
| > | =300, but neither setting prevents the timeout.
| > |
| > | My machine.config has executionTimeout="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
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...
2
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...
0
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...
0
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...
0
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...
0
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...
3
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...
0
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...
2
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: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.