Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2006

Tip: Looking for answers? Try searching our database.

System.Net.WebException: The operation has timed-out  again

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
arun.hallan@gmail.com - 21 Aug 2006 10:41 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.