How to avoid timeout errors when debugging a web service in visual studio 2008

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

Sometimes I need to stop and think about things and compare values. Non-talking hours, only a few minutes, the web service is not working at the moment, how can I avoid this, so the web service is not disconnected at all.

thanks

+5
source share
3 answers

Ok, now the serious answer found at:

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

  • Increase the property of the Timeoutweb proxy service property .

    MyWebServ obj = new MyWebServ();
    obj.Timeout = -1; // -1 for forever otherwise in milliseconds
    
  • - http-runtime web-config ASP.NET project./app.config, - - Windows.

  • - http-runtime - - .

+8

-, :

IIS "Ping Enabled" false

(, !) - )

+5

, , , .

- , pinging , :

appcmd set apppool /apppool.name: string /processModel.pingingEnabled: false

:

  • IIS

  • "" node " ".

  • On the Application Pools page, select the application pool and click Advanced Settings in the Actions panel.

  • For the Pinging Enabled property, select False to disable ping, and then click OK.

0
source

All Articles