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

系统环境:

windows 8.1 x64

VS2013 pro x86

MS Access 2013 x64


问题原因与解决方法:

出现这个问题的原因是vs版本和access版本的平台不兼容导致的。所以解决原因很简单,安装 access的x86版本的数据库驱动即可。下载地址如下:

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


安装x86版本的驱动。


另外,数据库连接池需要设置为允许x86应用程序运行。设置方法如下:

Now, whether your web application runs in x86 (32-bit) or x64 mode is not determined by your build settings but by the settings of your application pool: Select the application pool in IIS Manager, go to Properties/Advanced Settings and verify the setting of Enable 32-bit Applications. If it is set, your application runs in x86 mode, otherwise in x64 mode. Make sure it is the same mode as the one of which you installed the ACE driver.


X64的系统需要将原来的 Enable 32-bit Application 改为 true

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值