Click here to Skip to main content
15,886,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created a Windows Forms application in VS 2008 on 32 bit XP machine. I have used Provider = 'Microsoft.Jet.OLEDB.4.0' in my application.

When Published and ran the published code on a 64 bit Windows 7 machine (which do not have VS installed on it), I encountered following error:
The 'Microsoft.Jet.OLEDB.4.0' provider is not registered.

I also republished the code on my 32 bit machine by changing the string to - Provider = 'Microsoft.ACE.OLEDB.12.0'. But when I ran on 64 bit machine, I get the same error :
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered.

What changes should I make in my code? How can I know which OLEDB Provider is registered on my machine?
Posted

 
Share this answer
 
Comments
Maciej Los 10-May-13 17:47pm    
+5!
Andreas Gieriet 10-May-13 17:49pm    
Thanks for yur 5!
Cheers
Andi
I have resolved the issue by setting the configuration to target x86 platform since my application will run on a 64bit machine after publishing it.
I followed following steps:

On the Build menu, click Configuration Manager.

In the Active solution platform box, select the platform 'x86', or select 'New' to create a new platform and create 'x86'. Visual Studio will compile your application to target the platform that is set as the active platform in the Configuration Manager dialog box.
 
Share this answer
 

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



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