The Operation has time out at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
<p>WebSevice TimeOut Occurred while performing a long running task for eg. Executing an Stored Procedure in Service call.</p>

<p>To Overcome I've tried setting the timeout value in web service proxy class</p>

<pre><code> WebReference.ProxyClass myProxy = new WebReference.ProxyClass();
 myProxy.Timeout = 999999999; //in milliseconds, i.e. 277 Hours
</code></pre>

<p>and modified the web.config </p>

<pre><code>&lt;configuration&gt;
&lt;system.web&gt;
&lt;httpRuntime maxRequestLength="999999" executionTimeout="99999999" /&gt;
</code></pre>

<p>But still the same Exception :</p>

<pre><code> The Operation has time out at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
</code></pre>

<p>any ideas ? thanks.</p>