title: How can I increase the timeout for web service running in IIS7?
body: <p>I have a webservice (.asmx) method that takes several minutes to complete. At the client I have set the timeout to be infinte:</p>
  
  <pre><code>   services.Timeout = -1;
  </code></pre>
  
  <p>How can I do the same at the server? </p>
  
  <p>I have tried adding the following to my web.config</p>
  
  <pre><code>&lt;system.web&gt;
  &lt;httpRuntime executionTimeout="1200"/&gt;
  </code></pre>
  
  <p>MSDN documentation says that this should increase the timeout by seconds. The time out is occurring quicker than 20 minutes.</p>
  
  <p>Can someone help?</p>
  
  <p>Thanks!</p>