While trying to open created file by Microsoft Excel, it produces an error

Topics: Developer Forum, User Forum
Jan 24, 2012 at 4:49 PM


First of all, thank you for your efforts for this project, it is awesome.

I'm using asp.net mvc 2 and I achived creating excel files very easily. After generating file, website sends back that file to client side by FileResult thing. After downloading the file, Excel produces an error like "Excel found unreadable content in 'a.xlsx'. Do you want to recover contents of this workbook?"

The error description may be different because I translated it to english (I'm using turkish office 2010).

Why is that? What I'm missing? After pressing yes to that error dialog, excel opens it with no problem but why it produces this error?


Thank you for your help already.