The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine

后端 未结 2 1818
无人及你
无人及你 2020-12-21 07:11

Can someone help me with this error? When I try to open a connection to an mdb, I get \"The \'Microsoft.Jet.OLEDB.4.0\' provider is not registered on the local machine\" err

相关标签:
2条回答
  • 2020-12-21 07:26

    If you are running your application in a 64 bit OS, Microsoft has now released the 2010 Office System Driver Beta: Data Connectivity Components which is supported both in 32 bit as well as 64 bit OS. So using this driver instead of the traditional Microsoft.Jet.OLEDB.4.0 driver will give us a 64 bit application running on a 64 bit server (that is what we really need).

    Though this is in beta, it worked fine for me.

    You can download this driver from 2010 Office System Driver Beta: Data Connectivity Components

    Thnks

    0 讨论(0)
  • 2020-12-21 07:39

    That's because there is no Jet driver for 64-bit systems and I suppose you are trying to run this on a x64 bit OS. You need to compile your program to target x86. In the project properties, Build tab, set Platform target to x86.

    0 讨论(0)
提交回复
热议问题