Navigation

Search

Categories

On this page

Visual Studio 2005: Key not valid for use in specified state

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 17
This Year: 2
This Month: 1
This Week: 0
Comments: 1

Sign In
Pick a theme:

# Friday, October 12, 2007
Friday, October 12, 2007 2:31:28 PM UTC ( )

We have recently migrated all of our workstations to a different Windows domain at our office.  Some folks were getting the following error when trying to open a DataSet in Visual Studio 2005:

Key not valid for use in specified state

The problem is caused because of the change of your username from the old domain to the new domain. This causes Visual Studio to not be able to properly decrypt some its settings.

The fix is to rename/delete the following file:

C:\Documents and Settings\YOUR USERNAME\Application Data\Microsoft\VisualStudio\8.0\ServerExplorer\DefaultView.SEView

You will now have to add back all your databases to the Server Explorer toolbox (but you only have to add them at a later time as you need them).

Thanks to Robert Stam for this tip.

Comments [0] | | #