I have a JSON service that I’m exposing via ASP.NET MVC 3. This service is exposed as an Action on a Controller. I can successfully call the action. However, occasionally, the action takes too long to complete. Because of that, my caller fails due to a timeout. My question is, how do I change the timeout threshold’s in ASP.NET MVC 3.
Share
If you need do some task that you know can take a little while would be nice use AsyncControllers, and you can set diferent timeout betwen actions
for example
http://msdn.microsoft.com/en-us/library/ee728598.aspx#Y4400 for details…
otherwise…
HttpContext.Server.ScriptTimeout = 3000;