The default timeout for async actions is 45 seconds. To override that, add the
AsyncTimeout attribute[
^] to your action:
[AsyncTimeout(60000)]
public async Task<ActionResult> YourAction()
{
...
}
If you want your action to never time out, you can use the
NoAsyncTimeout attribute[
^], or pass
-1
to the
AsyncTimeout
constructor.