Monday, 22 April 2013

System.Net.WebException: The operation has timed-out in WebService

Actual Error :
{System.Net.WebException: The operation has timed out
   at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

Inner Exception :
  Everytime inner exception will not be same.So you have check it while debugging.

Solution:

If it possible to modify timeout session timing in web_service increase it.
From CS Code:
 Service1 ws = new Service1();
 ws.Timeout = 300000;
 ws.HelloWorld();


Check the solution.
Enjoy :) :) :)




No comments:

Post a Comment