我尝试在web.config中为asp.net mvc应用程序设置executionTimeout。 executionTimeout无法在asp.net上工作mvc
<location path="Home/Index">
<system.web>
<httpRuntime executionTimeout="5"/>
</system.web>
</location>
任何使用的Thread.sleep在索引操作
public ActionResult Index()
{
Thread.Sleep(30000);
return View();
}
也我设置complilation的调试,以 “假”。 行动后大约30秒睡眠并且“请求超时”异常不会被抛出并且视图已成功呈现。
任何一个知道如何使executionTimeout在asp.net mvc中工作?
可能重复的[ASP.NET MVC和的httpRuntime executionTimeout](http://stackoverflow.com/questions/492346/asp-net-mvc-and-httpruntime-executiontimeout) – 2010-10-23 09:48:31