C# web项目中,打算使用OleDb和Microsoft.ACE.OLEDB.12.0来读取xlsx扩展名文件。
即使在安装了Microsoft Access Database Engine 2010 Redistributable以后也遇到了'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine
错误。
在网上找到如下解决方案:
(IIS Manager) try to change your application pool on advance settings >> Enable 32 bit Application - set True
如果你是64位系统,而Office是32位的,可以尝试一下这个解决方案。
Comments