I have a handler that return a json, I some cases I execute more manipulations with data that increase execution time (10 min for example)
I want to increase timeout (to avoid 504 Gateway Timeout ) for this handler, I tried to add in web.config global executionTimeout
<system.web>
<!-- Set timeout 10 minutes -->
<httpRuntime executionTimeout="600"/>
</system.web>
directly to my handler name
<location path="myHandler.ashx">
<system.web>
<httpRuntime executionTimeout="600"/>
</system.web>
</location>
Inside the handler in ProcessRequest
context.Server.ScriptTimeout = 600000;
no one of above solutions not resolve 504 error code
WS 2012 R2, IIS 8.5 In postman Time-out is after 45020 - 45050 ms (~45 sec)