G
Guest
I have been getting the following server errors sporadically while
downloading excel, csv or xml file.
Internet Explorer cannot download <file name> from <IP address>
"The server returned an invalid or unrecognized response" /
"The connection with the server was reset"
I'm using Response.BinaryWrite to send down the file content as attachment
(sample codes is attached below). I read some of the similar posts in the
newsgroup about the size of the download that may have caused this error.
After some testing with different size of download(12KB to 40MB), it doesn't
seem to make any difference. Even the 12KB download sometimes gets the error.
I have checked the file format , IIS log file and event log and they all
seems to be fine. I am hitting the wall here and I greatly appreciate it if
anyone can help. BTW, I am using IIS 6 on Win 2003 server. Thanks.
------------------------------------------------------------------------------
Response.ContentType = "application/excel";
Response.AddHeader("Content-Disposition", "attachment; filename=report.xls");
Response.BinaryWrite(byteContent);
Response.Flush();
Response.Close();
downloading excel, csv or xml file.
Internet Explorer cannot download <file name> from <IP address>
"The server returned an invalid or unrecognized response" /
"The connection with the server was reset"
I'm using Response.BinaryWrite to send down the file content as attachment
(sample codes is attached below). I read some of the similar posts in the
newsgroup about the size of the download that may have caused this error.
After some testing with different size of download(12KB to 40MB), it doesn't
seem to make any difference. Even the 12KB download sometimes gets the error.
I have checked the file format , IIS log file and event log and they all
seems to be fine. I am hitting the wall here and I greatly appreciate it if
anyone can help. BTW, I am using IIS 6 on Win 2003 server. Thanks.
------------------------------------------------------------------------------
Response.ContentType = "application/excel";
Response.AddHeader("Content-Disposition", "attachment; filename=report.xls");
Response.BinaryWrite(byteContent);
Response.Flush();
Response.Close();