我想导入excel所以我使用System.Data.OleDb.OleDbConnection但它给出了错误(Microsoft = errors company),它给出了错误 the 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

我尝试谷歌并安装2007 Office System驱动程序:数据连接组件(https://www.microsoft.com/en-us/download/confirmation.aspx?id=23734)和Microsoft Access数据库引擎2010可再发行组件(https://www.microsoft.com/en-us/download/details.aspx?id=13255

现在它在我的本地工作,但在Windows Server 2012 R它给出相同的错误,尽管我安装相同的.exe

我该怎么办?