深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 663|回复: 1
打印 上一主题 下一主题

关于 The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local m...

[复制链接]

800

主题

1379

帖子

7704

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7704
跳转到指定楼层
楼主
发表于 2020-10-20 18:09:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

For version 12.0 you need to install MDAC 2010 from here.

https://www.microsoft.com/en-us/ ... ation.aspx?id=13255

This has to be done on the server where you publish your application. You need to install the x86 version if the target machine is 32 bit or the x64 version if the target machine is 64 bit and your application is built with configuration Any CPU.
回复

使用道具 举报

800

主题

1379

帖子

7704

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7704
沙发
 楼主| 发表于 2020-10-20 18:13:13 | 只看该作者

Solution
You need to change the Solution Platform from "Any CPU" to "x86". The steps are given below:

Right click on the Solution File in Solution Explorer:
Image 2

Click on the Configuration Manager.
Click on the Active Platform Drop down, if x86 is already there then select that, else click on New.
Image 3

Select x86 from the new platform dropdown:
Image 4

Compile and run your application.
If you are still facing the issue, then try installing Office System Driver.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-5-5 01:51 , Processed in 0.027797 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表