I'm using VS 2012 & Office 2013 64 bits, and i changed the target platform to x86, but I still got this weard error
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine".
I'm using VS 2012 & Office 2013 64 bits, and i changed the target platform to x86, but I still got this weard error
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine".
You need to download two components:
1) microsoft access database engine 2) Office System Driver: Data Connectivity Components
After these installations your application will start to work. Furthermore, following link is better to use on access to database:
void test()
{
string connStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\\Database1.accdb;Persist Security Info=False;";
OleDbConnection conn = new OleDbConnection(baglantiCumlesi);
conn.Open();
conn.Close();
}