Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I avoid timeout errors while debugging a web service in visual studio 2008

I am using a console application to call web service methods and I am stepping through the code using the debugger in vs2008.

Sometimes I need to stop and think about things, and compare values. Not talking hours, just a few minutes, at this point the web service times out, how can I avoid this, so that the web service does not time out at all.

Thank you

like image 300
JL. Avatar asked Jul 31 '09 09:07

JL.


1 Answers

Ok, now a serious answer, found at:

http://bytes.com/groups/net-web-services/628561-increase-default-webservice-timeout-globally

  1. Increase the Timeout property of the web-service-proxy.

    MyWebServ obj = new MyWebServ();
    obj.Timeout = -1; // -1 for forever otherwise in milliseconds
    
  2. Increase the timeout value in http-runtime tag in web-config of ASP.NET project./app.config if the web consumer application is Windows.

  3. Increase the timeout value in http-runtime tag in web-config of Web Services project.

like image 144
Colin Avatar answered Sep 28 '22 06:09

Colin