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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top