Mohammed Rizk

Mohammed Rizk

  • NA
  • 4
  • 8.2k

Connecting to Access MS 2013 issue

Feb 6 2014 5:30 AM
I am trying to connect to an access Data base MS 2013 through the code and here is the code that i used 
 
OleDbConnection MyAccessConn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\\Test.accdb;");
MyAccessConn.Open(); "
 
and when i run the programmed it gives me this Error
 
 
"
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Data.dll

Additional information: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. "
 
 
Please Help  

Answers (2)