‘Microsoft.ACE.OLEDB.12.0’ provider is not registered

I was working on a method to display the contents of an Excel file . No problem. But when I ran my code, I got an InvalidOperationException exception:

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

Luckily, this wasn’t too hard of a fix. I needed to install the data connectivity component for MS Office. The link for that is http://www.microsoft.com/en-us/download/details.aspx?id=23734. Once I had the AccessDatabaseEngine.exe, I installed it and ran my code again, and all was well.

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: