Error 504 on the server

I load the data into a text file, and when the procedure takes a lot of time (a lot of data), I get a 504 response (viewed in Fiddler) and obviously the file is not generated. I thought I would try to increase the session timeout in my web.config, but that did not help.

Is there any property defining a timeout for this?

Appreciate any help.

+7
source share
1 answer

This is most likely related to the http.untime web.config element:

<httpRuntime maxRequestLength= "4096" /> 

maxRequestLength is an integer value that defines the limit for the input stream in KB. The default value is 4096 (4 MB), set to this level so that users do not send large files to the server.

Additionally, you may need to add the executeTimeout = "999999" attribute to this element.

Note that the Microsoft documentation indicates the debug mode with respect to the execution of Timeout:

executeTimeout The default value is "00:01:50" (110 seconds).

This timeout applies only if the debug attribute in the compilation element is False. To prevent the application from stopping during debugging, do not set this timeout to a large value.

+4
source

All Articles