Groups | Blog | Home
all groups > asp.net webservices > february 2007 >

asp.net webservices : set connection timeout when calling to webservice method


tony
2/27/2007 4:25:01 PM
hi.

when i call to web service method, while there is no internet connection,
it takes like 40 secs- 2 minutes before i get answer.

can i change the timeout so, incase of no internet connection, the method
return in 10 second ? (for example)

thanking in advance.

Manish Bafna
2/28/2007 1:18:08 AM
Hi,
Service1 obj = new Service1();
obj.TimeOut = -1; // infinite time out.Here you can set your connection time
out
--
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



[quoted text, click to view]
AddThis Social Bookmark Button