Blog Home  Home RSS 2.0 Atom 1.0 CDF  
The Moon Upstairs - Visual Studio 2005: Key not valid for use in specified state
and other issues programming .Net
 
 Friday, October 12, 2007

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.

Friday, October 12, 2007 9:31:28 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]    |  Trackback
Copyright © 2008 Fred Peters. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.