我正在尝试阅读xlsx文件。
我有例外
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. c#
然后我从这里安装了
http://www.microsoft.com/en-us/download/details.aspx?id=13255
然后我将platform target
更改为x64
现在我遇到了这个例外:
BadImageFormatException was unhandeled
{"Could not load file or assembly 'LinqToExcel, Version=1.9.0.0, Culture=neutral, PublicKeyToken=9c8ea65a58f03f1f' or one of its dependencies. An attempt was made to load a program with an incorrect format."}
我已经安装了linq_to_excel 使用
Install-Package LinqToExcel
然后将lib文件添加到引用