Question

I have an ASP.NET MVC 3 application in which I want to import excel files.

I managed to do this using the linq-to-excel library. But when I deployed the application on IIS I got an error which turned out to be caused by IIS being running on 64bits system.

This can be solved by enabling the 32-bits applications option for the pool in IIS.

Will this affect the performance of the application? If yes, is there another alternative to linq-to-excel that works on 64-bits.

Was it helpful?

Solution

https://code.google.com/p/linqtoexcel/wiki/UsingLinqToExcel

x64 Support

If you want LinqToExcel to run in a 64 bit application, make sure to use the 64 bit version of the library.

You will also need to make sure to have the 64 bit version of the Access Database Engine installed on the computer.

And make sure you manually set the DatabaseEngine property to DatabaseEngine.Ace

var excel = new ExcelQueryFactory("excelFileName");
excel.DatabaseEngine = DatabaseEngine.Ace;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top