I know this has been asked umpteen times but i cant find an answer to
my problem.
Very simply, i have a GUI which is trying to call a webservice. The
webservice may take any time from 5mins to 30mins (or more). However
after 2mins i get the following error:
System.Net.WebException: The operation has timed-out
The webservice doesnt return anything. I tried the whole thing with the
method i'm calling returning a boolean, but the error still occurs.
This is an issue with the GUI timing out calling the webservice - as
the underlying webservice still runs in the background.
Anyone come across this and know how to solve?
Vadym Stetsyak - 21 Aug 2006 11:00 GMT
Hello, arun.hallan@gmail.com!
ah> This is an issue with the GUI timing out calling the webservice - as
ah> the underlying webservice still runs in the background.
You can increase synchronous call timeout.
Set Timeout property of your web service stub to do this.
Or use async call via BeginXXX/EndXXX
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Dan Normington - 21 Aug 2006 11:04 GMT
I think this is the web service actually timing out. There is a setting in
the web.config file of the web service.
<httpRuntime executionTimeout="1000" />
The timeout is measured in seconds, you may want to see what works best for
you.
>I know this has been asked umpteen times but i cant find an answer to
> my problem.
[quoted text clipped - 12 lines]
>
> Anyone come across this and know how to solve?
arun.hallan@gmail.com - 21 Aug 2006 11:45 GMT
I've already got the following tag in my web.config
<httpRuntime
maxRequestLength="1048576"
executionTimeout="3600"
/>
And the webservice carries on running while the GUI times out and
crashes.
> I think this is the web service actually timing out. There is a setting in
> the web.config file of the web service.
[quoted text clipped - 20 lines]
> >
> > Anyone come across this and know how to solve?
John Kievlan - 30 Aug 2006 20:08 GMT
If you have a proxy object for the web service, set the
serviceproxy.Timeout property to the desired timeout, in milliseconds.
You can set it to System.Net.Threading.Timeout.Infinite to prevent the
proxy from timing out at all.
> I've already got the following tag in my web.config
>
[quoted text clipped - 30 lines]
> > >
> > > Anyone come across this and know how to solve?