I tried set the executionTimeout in web.config for an asp.net mvc application.
<location path="Home/Index">
<system.web>
<httpRuntime executionTimeout="5"/>
</system.web>
</location>
any used the Thread.Sleep in Index action
public ActionResult Index()
{
Thread.Sleep(30000);
return View();
}
also, i set complilation's debug to "false". after the action sleep about 30 seconds and the "request timeout" exception not throws out and the view had been rendered successfully.
any one know how to make the executionTimeout to work in asp.net mvc?