504 Error On Server

心不动则不痛 提交于 2019-12-10 12:56:51

问题


I'm loading data into a text file and when the procedure takes long (lots of data) I get a 504 response (viewed in Fiddler) and obviously the file fails to generate. I thought I'd try increasing the session timeout in my web.config, but that didn't help.

Is there some property that determines the timeout for this?

Appreciate any help.


回答1:


This is most likely related to httpRuntime web.config element:

<httpRuntime
   maxRequestLength= "4096"     />

maxRequestLength is in integer value that specifies the limit for the input stream in KB. The default is 4096 (4 MB) set to this level with the intention to avoid users posting large files to the server.

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

Please note that Microsoft documentation indicates about debugging mode regarding the executionTimeout:

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

This time-out applies only if the debug attribute in the compilation element is False. To help to prevent shutting down the application while you are debugging, do not set this time-out to a large value.



来源:https://stackoverflow.com/questions/10985971/504-error-on-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!