简体   繁体   中英

Microsoft.ACE>OLEDB12.0' provider is not registered on the local machine

When I try to connect my programme with the database, a message says

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

I already installed " Microsoft Access Database Engine 2010 Redistributable "

Have any idea?

Please try the following:

  • First, ensure that you have installed the correct version of the database engine; you can download the 32bit/64bit version from here: https://www.microsoft.com/en-us/download/details.aspx?id=13255
  • The installed driver can only be used within an application running under the same architecture, therefore, try building your application to run as 32bit or 64bit; you can do this from your project properties, Build tab, please try the following two combinations and see which one works:

x86


x64

Also, you can use the System.Environment.Is64BitProcess property to tell if your process in running as 64-bit.

Hope this helps.

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