473,416 Members | 1,714 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,416 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 9034
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...

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.