Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All-

In my console application I am using OLDEB to convert csv to DataTable. When I run the .cs file from VS command prompt I am getting the error 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. I have already installed Microsoft Access Database Engine, but still I am getting the error. Is there any command available in VS command prompt to convert it into x86.

Note: I am working in a windows 7, 64-bit machine.

Please help,
Thanks in advance.
Posted

You, or your question, seem a little confused. If you wish to use Jet 4.0 then you must build to x86, which will run quite happily on a 64bit system. Or you could run as 64-bit and use the Microsoft.Ace.OLEDB.12.0 engine. Either way you need to download the driver and install it on your system.
 
Share this answer
 
Richard already told you what to do.
On more operative basis: if you have MSoffice 32 bits already installed simply recompile your code changing the solution platform in visual studio from 'any CPU' to 'x86' and your code will work.
 
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