Visual Studio 2010 can't delete data connection

2.1k Views Asked by At

I'm on Windows 7, using Visual Studio 2010 SP1. I created a database connection and its not being used any longer. I want to simply delete the connection.

I keep get an error saying: "The given key was not present in the dictionary."

There is another message I get when trying to create a connection to a SQL server: "Unable to add data connection. The given key was not present in the dictionary."

This is really annoying! I have done a google search and got some solutions, but they do not work.

Thanks for anyone's help!

1

There are 1 best solutions below

0
On

FIXED THE PROBLEM! Here's the answer: On Windows 7 and perhaps Vista, try renaming or deleting this file "DefaultView.SEView" in this folder C:\Users...\AppData\Roaming\Microsoft\VisualStudio\9.0\ServerExplorer

Someone else said to remove the file from AppData\Local but that's just not right, it never worked and is why I posted this question here.