我嘗試在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