The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error in windows server

假如想象 提交于 2020-01-05 05:46:10

问题


I am using a excel reader to read contents from the excel,

  string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;
                 Data Source=" + filePath + ";Extended Properties=Excel 12.0;";
  System.Data.OleDb.OleDbConnection ExcelConnection 
                 = new System.Data.OleDb.OleDbConnection(connectionString);

I'm working in VS2010 on a windows 7 ultimate x64 installation. it works fine in my local machine when I run with VS. When I upload the website in server I get the following error. What should I do here, I have access to the server. Thanks

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. Error

: do I have to install any software in my server


回答1:


Yes. Be aware that there will be different versions dependent on whether you are running on 32 or 64 bit architecture.

The providers can be downloaded here:

http://www.microsoft.com/download/en/details.aspx?id=13255



来源:https://stackoverflow.com/questions/8398505/the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!