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 / ASP.NET / Web Services / February 2006

Tip: Looking for answers? Try searching our database.

The operation has timed out

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Satish Babu Dasari - 09 Feb 2006 11:43 GMT
Hi,

We have created the webservices for accessing the database layer and
deployed on the IIS Server which is in the local PC. These webservices called
from the C# windows application In our application we have reports which will
take lot of time to fetch the data depend on the criteria. When ever we run
the long time reports, webservices are giving error saying that "The
operation has timed out".

Advance thanks.

Regards
Satish
Tony - 11 Feb 2006 21:24 GMT
On the client side, just set the Timeout property on your webservice class.
The following example would set the timeout to something pretty high like
five min - I normally set most of mine to 30 sec, 10 min when debugging.

e.g. oWebService.Timeout = 300000; // five min in ms

If I submit a long running task, I kick off the task and check back
periodically to see if it has finished.

Tony

> Hi,
>
[quoted text clipped - 12 lines]
> Regards
> Satish
Satish - 13 Feb 2006 03:47 GMT
Tony,

Thank you for suggestion, we have got the solution for this problem.
if we write the following code we wont get timeout error at all.

ws.Timeout = System.Threading.Timeout.Infinite

Regards
Satish

> On the client side, just set the Timeout property on your webservice class.
> The following example would set the timeout to something pretty high like
[quoted text clipped - 23 lines]
> > Regards
> > Satish
Simon Hart - 14 Feb 2006 13:05 GMT
You might want to consider using Asynchronous Web Service calling if your
not doing so already...

> Tony,
>
[quoted text clipped - 35 lines]
>> > Regards
>> > Satish

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



©2009 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.