Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

I'm trying to get data from an Excel file on a button click event. My connection string is:

 string connString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\source\\SiteCore65\\Individual-Data.xls;Extended Properties=Excel 8.0;"; 

When I click on the button, I got the following error:

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

I have no clue how to fix this. My operating system is Windows 7.

like image 721
Shailesh Sahu Avatar asked Jul 11 '11 11:07

Shailesh Sahu


People also ask

How do I fix the Microsoft ACE Oledb 16.0 provider is not registered on the local machine?

This error indicates that the Microsoft Access Database Engine 2016 is not installed, download and install the Microsoft Access Database Engine from this link should fix this problem.

How can I tell what Oledb drivers are installed?

Right-click on the file, nzoledb. dll, and select Properties. The version number is displayed either in the Product Version field on the Details tab or under the Version tab, depending on your OS.


1 Answers

Well, you need to install it. You're looking for:

  • The 2007 Office System Driver: Data Connectivity Components.
like image 67
Variant Avatar answered Sep 23 '22 06:09

Variant