Our application generates an excel (by combining data from database with a static excel template file) and then streams the xlsx file back to our web application users.
This is the API used:
public void Save(HttpResponse response, string fileName, ContentDisposition contentDisposition, SaveOptions saveOptions);
This is how we use it:
wbook.Save(this.Response, wbookName, ContentDisposition.Attachment, new OoxmlSaveOptions());
The problem is that we are getting the following headers set by this API:
HeaderName="Content-Length", HeaderValue="1222734",
But right after the binary excel is streamed back, the following is seen in the HTTP stream:
BytesSent="1223165",
This mismatch is causing the load balancer to reset the connection as it is an RFC violation. This in turn errors out the file download on the user’s browsers. Please take a look at this urgent issue.
thanks,