Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been having trouble establishing a connection and finally narrowed down the problem to the error in the title. Every answer I have found so far has been exactly the same, they all say to change the active solution platform to x86 and to install Microsoft Access Database Engine 2007 x86 version, but I already have it installed and Visual Studio 2015 defaulted to x86, so neither of these is the answer (and yes, I tried to reinstall the database engine). Does anybody have a better suggestion?
Posted

1 solution

There are 3 possibilities. Either your code is running as 64-bit (compiled to target AnyCPU), your connection string is wrong, or you don't have the ACE engine installed to match the architecture target of your code.
 
Share this answer
 
Comments
KitsunePhoenix 8-Nov-15 6:19am    
okay this needs to be said for anyone else who can't figure out why this wasn't working. I followed the usual instructions to change the active solution platform, and there it said I was on x86. However, I went to Project ---> [Insert Project Name] Properties ---> Compile and even though the active platform was x86, the Target CPU was set to x64. Changing that to x86 fixed my problem.

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