Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Web Method TimeOut

Reply
Thread Tools

Web Method TimeOut

 
 
Lucas Ponzo
Guest
Posts: n/a
 
      11-08-2006

How to determine the time out for a web method ? Can I configure it for the
overall WebService ?

It's because some tasks are long runing operations.

Another situation is when debugging a web method. In the mean time, the
client thrown an Operarion Timeout Exception.

--
Lucas Ponzo
..NET Solutions Architect/Engineer
Override Software
 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      11-08-2006
Hello Lucas,

As for the webservice, is it an ASP.NET asmx webservice? If so, when you
consuming the webservice in .net client application, there has two
setttings that will affect the webservice call timeout behavior:

** The ASP.NET webservice's server-side httpruntime timeout setting, this
is configured through the following element:

#httpRuntime Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

<configuration>
<system.web>
<httpRuntime .............
executionTimeout="45"
.............../>
</system.web>
</configuration>

Also, make sure that you've set the <compilation debug="false" /> so as to
make the timeout work correctly.


** If you're using the wsdl.exe or VS IDE "add webreference" generated
proxy to call webservice methods, there is also a timeout setting on the
client proxy class(derived from SoapHttpClientProtocol class). This is the
"Timeout" property derived from "WebClientProtocol" class:

#WebClientProtocol.Timeout Property
http://msdn2.microsoft.com/en-us/lib...rotocols.webcl
ientprotocol.timeout.aspx

Therefore, you can consider adjusting these two values according to your
application's scenario. Here is a former thread also mentioned this:


http://groups.google.com/group/micro...rk.webservices
/browse_thread/thread/73548848d0544bc9/bbf6737586ca3901

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
client-side browser timeout OR server-side web server timeout?? (please help) jrefactors@hotmail.com HTML 1 01-04-2005 06:13 AM
client-side browser timeout OR server-side web server timeout?? (please help) jrefactors@hotmail.com Javascript 0 01-04-2005 04:06 AM
client-side browser timeout OR server-side web server timeout?? (please help) jrefactors@hotmail.com Java 0 01-04-2005 04:06 AM
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
web.config session timeout and forms authentication timeout Do ASP .Net 2 11-23-2003 02:27 PM



Advertisments