"Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine" Error on Windows 7 (64-bit) + Office 2010 (64-bit) + Visual Studio 2010
If you use
(1) Windows 7 (64-bit), and
(2) Office 2010 (64-bit), and
(3) Visual Studio 2010
to write an ASP.NET code to connect to Access or Excel database using the Microsoft.ACE.OLEDB.12.0 provider
and
consistently get the "Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine" error,
try installing the 2007 Office System Driver: Data Connectivity Components, which is basically a Microsoft Access Database Engine 2007 Redistributable for Windows (32-bit) from
http://www.microsoft.com/download/en/details.aspx?id=23734
Many forums suggested by Google Search suggest installing the Microsoft Access Database Engine 2010 Redistributable for Windows (32-bit, 64-bit) downloadable from
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=13255
but it wouldn't help because Visual Studio 2010 is a 32-bit application; what you need is a 32-bit Data Connectivity component. The 2010 download will not allow you to install its 32-bit component over an existing 64-bit installation of Office 2010. Its 64-bit component wouldn't help either.
Thanks to
http://stackoverflow.com/questions/9654399/everything-is-64-bit-yet-visual-studio-still-shows-microsoft-ace-oledb-12-0-not
for the clue!
(1) Windows 7 (64-bit), and
(2) Office 2010 (64-bit), and
(3) Visual Studio 2010
to write an ASP.NET code to connect to Access or Excel database using the Microsoft.ACE.OLEDB.12.0 provider
and
consistently get the "Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine" error,
try installing the 2007 Office System Driver: Data Connectivity Components, which is basically a Microsoft Access Database Engine 2007 Redistributable for Windows (32-bit) from
http://www.microsoft.com/download/en/details.aspx?id=23734
Many forums suggested by Google Search suggest installing the Microsoft Access Database Engine 2010 Redistributable for Windows (32-bit, 64-bit) downloadable from
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=13255
but it wouldn't help because Visual Studio 2010 is a 32-bit application; what you need is a 32-bit Data Connectivity component. The 2010 download will not allow you to install its 32-bit component over an existing 64-bit installation of Office 2010. Its 64-bit component wouldn't help either.
Thanks to
http://stackoverflow.com/questions/9654399/everything-is-64-bit-yet-visual-studio-still-shows-microsoft-ace-oledb-12-0-not
for the clue!
Comments