Raul Miranda
Raul Miranda

Reputation: 71

"Microsoft.ACE.OLEDB.16.0 provider is not registered on the local machine" but I have it installed already

I have the same problem as others but (in this case) I have already installed that component.

UPDATE: I have Windows 10 x64, Office 2016 x64, MS Access Database Engine 2016 x64. Is a ASP.NET .NET Framework 4.5 target AnyCPU Visual Studio Solution (Web Site project).

The image is just for demonstrate that I have installed this OLEDB provider.

Provider is registered!

My code is:

"Provider=Microsoft.ACE.OLEDB.16.0;Data Source={0};Extended Properties='Excel 12.0 Xml;HDR={1}'"
cmdExcel.Connection = connExcel
connExcel.Open()

The last line break and cause the Exception.

Upvotes: 2

Views: 12112

Answers (0)

Related Questions