1
Vote

Issue with asp.net stream to Chrome?

description

Hi,

I have a asp.net web application that generates a zipfile that is sent to the browser stream.

This application has been working fine until very recently. Now, in Chrome an error occurs: NETWORK_FAILED. In Internet Explorer it is still working fine.

Does anyone recognize this issue? Does it have to do with a new Chrome release? Does anyone have a solution for this issue?

Regards,

Mark

comments

jonescarvalho wrote Sep 23, 2016 at 5:16 PM

I am also having the same problem, you managed to find the solution?

jonescarvalho wrote Sep 23, 2016 at 6:00 PM

I found the solution in google groups

https://productforums.google.com/forum/#!topic/chrome/8Aykgxa8kWU;context-place=topicsearchin/chrome/category$3ABeta


Resolution:
Found in Header by default Content-Length is sets "0"

by adding below line and it works fine for us..

Response.AddHeader("Content-Length", fileContent.Length.ToString());


abs

mblom wrote Oct 3, 2016 at 12:02 PM

Thanks for the reply, issue is solved with Content-Length!