sql - Visual Studio添加数据连接-字典中不存在给定键

标签 sql visual-studio connect server-explorer

我已经阅读了几个先前的类似问题,但似乎都没有提供解决方案。
所以我再问一次。
我正在使用Visual Studio,并尝试连接到服务器资源管理器中的数据库。无论我尝试连接到哪个数据库,都会出现“在字典中不存在给出的键”错误。
我已经尝试使用SQL CE和SQL Express 2008数据库,并且每个数据库都给出相同的问题。

我可以很容易地与SQL Management Studio Express连接,因此我相信数据库是相同的。

提前致谢。

最佳答案

经过大量时间寻找答案后,我找到了解决方案here

this is not really a workaround but in fact a SOLUTION, how to get rid of the error, in case you have missed to remove all connections before removing the provider:

edit C:\Users...\AppData\Roaming\Microsoft\VisualStudio\10.0\ServerExplorer\DefaultView.SEView and remove the connection with the wrong Provider manually. If you do not know which of the provider is failing, simply delete the file :)

If this won't help try deleting also C:\Users...\AppData\Local\Microsoft\VisualStudio\10.0

PS: you have to quit all instances of visual studios first or the files will be re-created from memory ..



第二部分仅对我有用,删除了整个文件夹。

关于sql - Visual Studio添加数据连接-字典中不存在给定键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4737170/

相关文章:

c# - 需要解决 Microsoft.QualityTools.Testing.Fakes

android - createRfcommSocketToServiceRecord 配对蓝牙

sql - 获取按列名称分组的列名称和类型

MYSQL导入空值

sql - 使用 OpenOffice Base 或 LibreOffice Base 将 .odb 文件转换为 .db

Drupal Facebook 连接功能

c++ - QTree控件;在 QTree 中选择多个项目时禁用 ui 功能

mysql - 从服务器下载数据库sql文件

visual-studio - 如何找出 VS Code 中的 "Problems in this file"错误?

c# - Nuget: 'Google.Apis' 已具有为 'Google.Apis.Core' 定义的依赖项