简体   繁体   中英

C# to ms access database

I got an shown in the below image on my connection between my ms access database and my c# windows form application,error says that

"The 'Microsoft.ACE.OLDB.12.0' is not registered to local machine"

visual studio2015 and ms access2016 i'm an amateur

在此处输入图片说明

Having recently dealt with this myself, I believe you need the Microsoft Access Database Engine 2010 Redistributable https://www.microsoft.com/en-us/download/details.aspx?id=13255

You have two options:

  1. 32-bit version (AccessDatabaseEngine.exe)
  2. 64-bit version (AccessDatabaseEngine_x64.exe)

You cannot install both at once. If you are targeting for the x86 platform, install the 32-bit version. If you are targeting for the x64 platform or AnyCPU, install the 64-bit version.

Have you installed office 2016 data connectivity components ? If not please install the same. You could get more details on the below links

Stack Overflow link

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