Free Support Forum - aspose.com

Iis http compression with aspose.excel- file download error!

I am using this line of code to save my excel file

excel.Save(“MediaPlan.xls”, SaveType.OpenInExcel, FileFormatType.Default, Me.Response)

which is works fine on my local machine. Once I move my project to live server, error occurs. Http compression is enabled on my live server, and read through some post I found out that Http compression will cause some problem.

How should i solve this problem since I would like to enable Http Compression on my server and make aspose.excel works?

Please check http://www.aspose.com/wiki/default.aspx/Aspose.Excel/HTTPCompression.html.

I used the code provided in the link as instructed to verify either it is apose's bug or not. By using the code, same error occurs like before (file download error exists, http compression still enable). Sorry for my ignorance, is it verify that this is not aspose's bug?

That piece of code shows it’s a MS problem. You can see it doesn’t use any code of Aspose component.

Thank you for your prompt reply. I have solved the problem. Since I can’t disable the HTTP Compression, hence I have to move those specified aspx files which contain the aspose code to another folder which is not being compressed.