I need to increase ASP .NET 2.0 web service timeout value due to copy/hash 4GB file by web service call. I did following configurations.
Set proxy timeout=7200000
in client code
At client machine web.config file,compilation debug="false" httpRuntime maxRequestLength="2048000" executionTimeout="14400"
At server machine which host web service web.config file,
compilation debug="false"
httpRuntime maxRequestLength="2048000" executionTimeout="10800"
At server machine machine.config file
processModel responseDeadlockInterval="05:00:00" userName="XXX" password="XXX" autoConfig="true" webGarden="true" At server machine MetaBase.xml file AspMaxRequestEntityAllowed="1073741824" AspScriptTimeout=”10800”AspSessionTimeout=”60”ConnectionTimeout=”14400”
Server machine is on Internet. With above configuration, server machine web service log still has Thread was being aborted exception
after around 2 minutes during file copy/hash operation. Why increasing timeout does not work?
尝试按照本文中的建议在Web服务web.config中设置maxAllowedContentLength设置如何将大型(> 25MB)文件上传到Web服务?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.