title: .NET Execution Timeout Not Taking Effect in an MVC Web Project
body: <p>We're trying to set a timeout, and requests just aren't timing out. We tried setting this several ways:</p>
  <p>By putting this in the web.config (in both the application's web.config, and the one in the views folder)</p>
  <pre><code>&lt;httpRuntime executionTimeout=&quot;5&quot; /&gt;
  </code></pre>
  <p>We made sure that we were not in debug mode</p>
  <pre><code>&lt;compilation debug=&quot;false&quot; targetFramework=&quot;4.0&quot;&gt;
  </code></pre>
  <p>We even tried setting a script timeout in code (even though it's supposed to be the same thing) and added a Thread.Sleep for 3 minutes (to make sure we were well above even the default timeout) And this action still does not time out:</p>
  <pre><code>public ActionResult Index()
  {
      Server.ScriptTimeout = 5;
      Thread.Sleep(60 * 1000 * 3);
      return View();
  }
  </code></pre>
  <p>It's happening on multiple machines, and I even went to creating a brand new solution with only the above changes from the template, and a brand new IIS website application pool... still, can't get a timeout.</p>
  <p>Is there some simple configuration setting we're missing? This seems like it should be easy to do...</p>