I have a C# ASP.NET MVC application in which I am submitting one HTML post request form from which I get an error
504 Gateway Time-out
In the action method I have to do too many things, So it will taking around the 2 minutes.
In my application I done the following changes:
Action method:
System.Web.HttpContext.Current.Server.ScriptTimeout = 120;
web.config
:
<httpRuntime maxRequestLength="1048576" requestValidationMode="4.0" executionTimeout="110" targetFramework="4.6.1" />
But after doing the above changes, I am still getting the 504 error after 1 minute.