Bug in MVC3 - requests never time out. Works fine for aspx pages in same project

前端 未结 3 624
梦如初夏
梦如初夏 2021-01-31 16:33

I\'m seeing this on our production site as well as a small test site I setup just to test this out...

Basically, it appears that requests handled by mvc never time out.

3条回答
  •  无人共我
    2021-01-31 17:18

    Still happening for me in MVC 4. I have submitted this to microsoft as a bug:

    https://connect.microsoft.com/VisualStudio/feedback/details/781171/asp-net-mvc-executiontimeout-does-not-work

    Update:

    Microsoft commented with the following:

    The execution timeout feature is not advised to be used in MVC applications. You can instead set HttpContext.Server.ScriptTimeout to the desired timeout value. Despite the name, this is a per-request setting and should apply to any ASP.NET request (the name "script" is misleading)

    .

提交回复
热议问题