gpt4 book ai didi

asp.net-mvc-3 - linq to excel 的 64 位替代品

转载 作者:行者123 更新时间:2023-12-03 01:06:56 25 4
gpt4 key购买 nike

我有一个 ASP.NET MVC 3 应用程序,我想在其中导入 Excel 文件。

我设法使用 linq-to-excel 库来做到这一点。但是当我在 IIS 上部署应用程序时,出现错误,结果是由于 IIS 在 64 位系统上运行而导致。

这可以通过在 IIS 中启用池的32位应用程序选项来解决。

这会影响应用程序的性能吗?如果是,是否有另一种可在 64 位上运行的 linq-to-excel 替代方案。

最佳答案

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;

关于asp.net-mvc-3 - linq to excel 的 64 位替代品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15741303/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com