当我是visual studio中的代码时,我得到了错误“system.invalidoperationexcetion”。发生了system.data.dll,但我无法解决它 [英] When I was code in visual studio I got the error "system.invalidoperationexcetion" occured system.data.dll but I were unable to solve it

查看:360
本文介绍了当我是visual studio中的代码时,我得到了错误“system.invalidoperationexcetion”。发生了system.data.dll,但我无法解决它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

System.Data.dll中发生未处理的System.InvalidOperationException类型异常



其他信息:Microsoft.ACE.OLEDB.12.0提供程序没有在本地机器上注册。

我得到这些错误我如何解决它的帮助?



我尝试过:



重置windows 10

安装MS office 2019预览

install访问引擎

An unhandled exception of type 'System.InvalidOperationException' occurred in System.Data.dll

Additional information: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
I got these error how I solve it help ?

What I have tried:

Reset windows 10
install MS office 2019 preview
install Access engine

推荐答案

阅读错误消息,非常清楚:

Read the error message, it's pretty clear:
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

这表示您尝试使用ACE DB引擎连接到文件,并且您的计算机上没有以您的应用程序可以访问的形式安装ACE。



有几个可能的原因:

1)你根本没有在那台电脑上安装它。

2)您已安装它,但版本错误 - 您的消息专门列出了V12.0

3)您安装了正确的版本,但您的应用无法访问它,因为其中一个以32位模式运行,另一个以64位运行模式。



我们无法分辨出它是哪一个 - 所以先看一下你的计算机并确定你确实安装了什么!

It means that you are trying to use the ACE DB engine to connect to a file, and ACE is not installed on your machine in a form that your app can access.

There are a few possible reasons for this:
1) You haven't installed it on that computer at all.
2) You have installed it, but the wrong version - your message specifically lists V12.0
3) You have installed the right version, but your app can't access it because one of them is running in 32 bit mode, and the other in 64 bit mode.

We can't tell which of those it is - so start by looking at your computer and working out what exactly you do have installed!


这篇关于当我是visual studio中的代码时,我得到了错误“system.invalidoperationexcetion”。发生了system.data.dll,但我无法解决它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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