Extend Web Services Time-Out

M

Mitja Semolic

How do I extend a WebService time-out, server-side or client-side?

Thanks
Mitja Semolic
 
J

Josh Twist

Well... both.

Server-side: ASP.NET will only allow the web method to process for the
time specified in the executionTimeout setting in the web.config
(inherits from the machine's setting's in the root config file if not
specified):
http://msdn.microsoft.com/library/d...-us/cpgenref/html/gngrfhttpruntimesection.asp.

Client-side: The client web service proxy will also have a default
timeout but this can easily be changed programmatically using the
Timeout property (inherited from SoapHttpClientProtocol):
http://msdn.microsoft.com/library/d...-us/cpgenref/html/gngrfhttpruntimesection.asp

e.g.

MyServiceProxy.Timeout = 60000 // 1 minute

Josh
http://www.thejoyofcode.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top