microsoft.ACE.OLEDB.12.0提供程序未在本地计算机上注册? [英] microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine?

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

问题描述

我一直无法建立连接,最后将问题缩小到标题中的错误。我到目前为止找到的每个答案都完全相同,他们都说要将活动解决方案平台更改为x86并安装Microsoft Access数据库引擎2007 x86版本,但我已安装它并且Visual Studio 2015默认为x86,所以这些都不是答案(是的,我试图重新安装数据库引擎)。有没有人有更好的建议?

I have been having trouble establishing a connection and finally narrowed down the problem to the error in the title. Every answer I have found so far has been exactly the same, they all say to change the active solution platform to x86 and to install Microsoft Access Database Engine 2007 x86 version, but I already have it installed and Visual Studio 2015 defaulted to x86, so neither of these is the answer (and yes, I tried to reinstall the database engine). Does anybody have a better suggestion?

推荐答案

有3种可能性。您的代码是以64位运行(编译为目标AnyCPU),连接字符串错误,或者您没有安装ACE引擎以匹配代码的体系结构目标。
There are 3 possibilities. Either your code is running as 64-bit (compiled to target AnyCPU), your connection string is wrong, or you don't have the ACE engine installed to match the architecture target of your code.


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

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