EPPlus Deployment - Pls Help CRITICAL !!

Oct 18, 2012 at 7:07 PM

Hi.. EPPlus works cool in my dev machine directly by running the solution with or without office installed. But when deployed in IIS, the client machines not able to read the excel. Same case when i deploy in production servers, it does not work.

Where Am i going wrong? pls Help!!!

Developer
Oct 20, 2012 at 6:27 AM

Hi

Its not easy to understand what is going wrong out of your description. But one common problem when writing the epplus bytes to the outputstream in iis is that ASP.NET adds some characters before and/or after the epplus content. This can be fixed by calling Response.Clear() before you write the epplus bytes the output stream and the calling Response.End() directly after.