Solved: ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine

Question:

I’m trying to get data from an Excel file on a button click event. My connection string is:
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.

Best Answer:

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

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com