繁体   English   中英

Windows服务器中的本地计算机错误未注册“ Microsoft.ACE.OLEDB.12.0”提供程序

[英]The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error in windows server

我正在使用Excel阅读器从Excel中读取内容,

  string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;
                 Data Source=" + filePath + ";Extended Properties=Excel 12.0;";
  System.Data.OleDb.OleDbConnection ExcelConnection 
                 = new System.Data.OleDb.OleDbConnection(connectionString);

我正在Windows 7 Ultimate x64安装的VS2010中工作。 当我运行VS时,它在我的本地计算机上运行良好。 当我在服务器中上传网站时,出现以下错误。 我应该在这里做什么,我可以访问服务器。 谢谢

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

:我是否必须在服务器中安装任何软件

是。 请注意,取决于您是在32位还是64位体系结构上运行,会有不同的版本。

可以在此处下载提供程序:

http://www.microsoft.com/download/en/details.aspx?id=13255

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM