I'm getting a network error when trying to download an Excel file from my web application hosted on a remote server. The request returns 200 OK response in network tab and file downloads until 64kb (total 274kb), then it stops.
The site turns to service unavailable. I have log and trace in controller action but there was no errors. The Excel file downloads perfectly fine when I run the application locally.
I tried these solutions, but none of them work. If someone has any ideas please let me know.
- In
web.configfile, we addedmaxAllowedContentLengthandresponseBufferLimit - I checked CPU, memory usage they are fine on server during download.
- I disabled HTTP/2 on binding
- I checked the MIME Type on IIS manager its showing correctly for
.xlsxasapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet - I checked Idle Timeout and recycle on application pool. They are fine.