We're trying to set a timeout, and requests just aren't timing out. We tried setting this several ways:
By putting this in the web.config (in both the application's web.config, and the one in the views folder)
<httpRuntime executionTimeout="5" />
We made sure that we were not in debug mode
<compilation debug="false" targetFramework="4.0">
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:
public ActionResult Index()
{
Server.ScriptTimeout = 5;
Thread.Sleep(60 * 1000 * 3);
return View();
}
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.
Is there some simple configuration setting we're missing? This seems like it should be easy to do...