Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi there i have created software on vs2010 with access database

i have installed that software on client machine. but it display "The Microsoft.jet.OLEDB.4.0 provider is not registered on this machine" error.


my system 64 (already setup (any CPU))

client machine 32 bits.
Posted
Updated 25-Sep-14 18:31pm
v2

1 solution

You have a problem. There is no 64-bit version of the Jet database engine so your AnyCPU compile will run as 64-bit on a 64-bit Windows and 32-bit on 32-bit Windows. The problem is that you cannot combine 32- and 64-bit code in the same process and, therefor, your OLEDB4.0 provider won't work when your app is running as 64-bit.

In order to get this to work, you either have to:

A) Recompile your app 32-bit (x86) only. Then you can use the Jet database engine on any machine that has Access or the Jet runtime installed on it.

B) Remove the dependency on OLEDB4.0 and use the ACE engine instead. The ACE engine come in either 32- or 64-bit versions. You can get the redistributables here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900