Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

Web Method TimeOut

Lucas Ponzo
Posts: n/a

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]
Posts: n/a
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)

<httpRuntime .............

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

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

Hope this helps.


Steven Cheng

Microsoft MSDN Online Support Lead


Get notification to my posts through email? Please refer to

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


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

Reply With Quote

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) HTML 1 01-04-2005 06:13 AM
client-side browser timeout OR server-side web server timeout?? (please help) Javascript 0 01-04-2005 04:06 AM
client-side browser timeout OR server-side web server timeout?? (please help) 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