I try to download an excel file made by EPPlus.dll
from an asp.net c# web form application. but i get Failed - network error.
It should be noted that mentioned erro
I had the same problem when I was using Response.Clear() and Response.Close() and had to avoid them to look my code as below which is working.
Response.Buffer = true;
Response.ContentType = mimeType;
Response.AddHeader("Content-Disposition", "attachment; filename=" + nameOfFile);
Response.BinaryWrite(bytes);
Response.End();