我有一个C#ASP.NET MVC应用程序,在其中提交了一个HTML帖子请求表单,该表单中出现错误
504网关超时
在动作方法中,我必须做很多事情,因此大约需要2分钟。
在我的应用程序中,我进行了以下更改:
操作方法:
System.Web.HttpContext.Current.Server.ScriptTimeout = 120;
web.config
:
<httpRuntime maxRequestLength="1048576" requestValidationMode="4.0" executionTimeout="110" targetFramework="4.6.1" />
但是做完上述更改之后,一分钟后我仍然收到504错误。