在'Microsoft.ACE.OLEDB.12.0'提供者未在64位计算机上注册的本地计算机上 [英] The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine in 64 Bit Machine

查看:1538
本文介绍了在'Microsoft.ACE.OLEDB.12.0'提供者未在64位计算机上注册的本地计算机上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows应用程序的工作。我读从Excel的值并更新到数据库中。
我的code是

I am working in Windows Application. I am reading a value from Excel and updating into the database. My code is

 string Con_Str = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + filepath +
                         ";Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\";";

在我的地方它的工作很好,我有32位机。我在服务器是64位计算机上运行的exe文件。还有我得到像误差

Its working fine in my local and i am having 32 Bit Machine. I ran the exe in Server which is 64 Bit Machine. There i am getting the error like

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

我已经下载了此链接中的最新..

I had downloaded the latest from this link..

http://www.microsoft.com/en-我们/下载/ details.aspx?ID = 13255

不过我收到的问题。如何解决这个问题。

Still i am getting the Issue. How to fix this..

推荐答案

您正在使用 Microsoft.ACE.OLEDB.12.0; (ADE的简称)。这意味着你需要在目标机器上安装相应的位。这是当你构建应用程序的choosen建筑复杂。

You are using Microsoft.ACE.OLEDB.12.0; (ADE for short). This means that you need to install the appropriate bits on your target machine. This is complicated by the Architecture choosen when you build your application.

您打造值为anycpu:

Install ADE 32bit on 32bit target machine
Install ADE 64bit on 64bit target machine

您打造86

Install ADE 32bit on 32bit or 64bit target machine.

正如你所看到的,要跳出最简单的方法就是编译x86架构的应用程序。

As you can see, the easiest way to get out is to compile your application for x86 architecture.

这篇关于在'Microsoft.ACE.OLEDB.12.0'提供者未在64位计算机上注册的本地计算机上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆