“The remote host closed the connection” in Response.OutputStream.Write

前端 未结 4 1540
清酒与你
清酒与你 2020-12-28 15:31

This code streams large files to our users:

                // Open the file.
            iStream = new System.IO.FileStream(filepath, System.IO.FileMode.Ope         


        
4条回答
  •  旧巷少年郎
    2020-12-28 15:44

    Increase executionTimeout in httpRuntime element of web.config.

    If user is downloading large file on slow connection, request will eventually timeout.

提交回复
热议问题