The operation has timed out

  • Thread starter Satish Babu Dasari
  • Start date
S

Satish Babu Dasari

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
 
T

Tony

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
 
S

Satish

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
 
S

Simon Hart

You might want to consider using Asynchronous Web Service calling if your
not doing so already...
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top