Visual Studio 2017 无法建立数据连接对话框 [英] Visual Studio 2017 unable to make data connection dialog box

查看:32
本文介绍了Visual Studio 2017 无法建立数据连接对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有最新版本的 Visual Studios 2017 Professional.我一直在尝试建立到 Access 数据文件的数据连接以进行开发,但没有成功.

So I have the latest version of Visual Studios 2017 Professional. I have been trying to set up a data connection to an Access data file for development and have been unsuccessful doing so.

连接属性对象的类型必须为 OleDBAccessConnectionProperites."

"The connection properties object must be of type OleDBAccessConnectionProperites."

然后点击确定后,我又得到了:

Then after clicking OK, I get it again:

Connection 属性对象的类型必须为 OleDBAccessConnectionProperties."

"The Connection properties object must be of type OleDBAccessConnectionProperties."

我从来没有收到添加所需信息的对话框.

I never get the dialog box to add the needed information.

我运行的是 2012 Microsoft Server 操作系统

I am running 2012 Microsoft Server OS

最疯狂的部分是,我尝试了此列表中的其他数据源并得到了相同的反应.

The crazy part is, I have tried other data sources in this list and get the same reaction.

我已重新安装此版本 4 次和 2 次修复,但未能使其正常工作.

I have re-installed this version 4 time and 2 repairs and have been unsuccessful in making it work correctly.

它唯一有效的时候是我添加了一个非默认数据源.有谁知道如何修复/修复默认数据源连接,以便在下一个对话框中获得更正以添加我的文件信息?

The only time it has worked is when I add a non-default data source. Does anyone know how to repair/fix the default data source connection in order to get the correction next dialog box to add my file information?

推荐答案

machine.config 文件中多了一行C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config

There was an extra line in the machine.config file C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config

右键单击 machine.config 并复制并更改对象扩展名.

right-click on machine.config and make a copy and change the object extension.

然后右击machine.config,用notepad或者notepad++打开

Then right-click on machine.config and open with notepad or notepad++

发现 DbProvidersFactories 列出了两次,删除一个

Found DbProvidersFactories listed twice, remove one

然后重新打开视觉工作室

Then reopen visual studios

这篇关于Visual Studio 2017 无法建立数据连接对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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