简体   繁体   中英

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

Currently, I am trying to run my c# code on my Windows x64 platform. But I cannot add my data into the MS Access. Its saying Additional information: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. . I tried to check my office application versions and got to know they are 32 bits application.

I tried to search for some solution but it didnt worked for me. This are the methods I have tried:

  1. Installing Microsoft Access Engine 2010
  2. Changing it to Microsoft.Jet.OleDb.4.0 (still the same error pops up)

This is my connection string code:

Connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\FacesDatabase.accdb;
                                        Persist Security Info=False";

Can I know how to solve this error. Thank you

If you're using 64-bit but still having problem even after installing AccessDatabaseEngine, see this post , it solved the problem for me.

ie. You need to install this Access Database Engine

Kindly check and confirm.

I was getting this same error after previously being able to complete similar operations. I didn't try downloading any of the mentioned packages since I didn't have them previously installed and things were working fine without them. IT at my job did a 'Repair' on the Microsoft Office 2013 installation (Control Panel > Programs > Add/Remove - Select Change then 'Repair'). Took a few minutes to complete but fixed everything and no longer get this error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM