I am using EPPlus to generate an XLSX file in C#. As soon as I instantiate the ExcelPackage with a memory stream - I get the error:
\"A disk error occ
You can create an ExcelPackage with an empty constructor. It will handle its own internal buffer.
http://epplus.codeplex.com/wikipage?title=WebapplicationExample
If you want to continue using a stream (e.g. Response.OutputStream) you can create an ExcelPackage with an empty constructor and use the SaveAs(Stream OutputStream) method.