Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have the following connection string using ado.net
String ConectionString=@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\Data.accdb; Jet OLEDB:Database Password=mypassword;"

I faced the problem
Microsoft.ACE.OLEDB.12.0 is not registered on local Machine

I solved it By installing 64 version of the Microsoft Access Database Engine 2010.
And edit Build Properties to x 86
But it never worked so I had to install 2007 Office System Driver :Data Connectivity components
When I installed the last one the problem disappeared
But I faced a new problem

Additional information: Cannot open database ''. It may not be a database that your application recognizes, or the file may be corrupt.

That is my problem now any help please?
The three solutions I followed are found in this amazing vedio
https://www.youtube.com/watch?v=uzLA_z7tDPs


sorry i forgot the most important information which is iam using microsoft office plus 2013 and i installed AccessRuntime_x64_en-us for office 2013 but it never works too
Posted
Updated 20-Dec-14 19:55pm
v4

1 solution

ACE.oledb.12.0 dosen't work in the 64-bit os

download patch from
XML
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=13255">http://www.microsoft.com/en-us/download/details.aspx?id=13255</a>
 
Share this answer
 
Comments
Maciej Los 17-Dec-14 8:03am    
Form OP question: "I solved it By installing 64 version of the Microsoft Access Database Engine 2010."
Please, read the question carefully.

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