Resolving error “TF31001: Cannot connect to Team Foundation Server at .visualstudio.com. The server returned the following error: Key not valid for use in specified state.”

Due to a Visual Studio 2013 client bug if you change your Windows credentials you might lose access to your Team Foundation Service accounts and receive the following error message:

“TF31001: Cannot connect to Team Foundation Server at <account>.visualstudio.com. The server returned the following error: Key not valid for use in specified state.”
FIX:
1. Close all instances of Visual Studio 2013
2. Delete this folder in the registry (just “TokenStorage” – nothing else):

HKEY_CURRENT_USER\Software\Microsoft\VSCommon\12.0\ClientServices\TokenStorage

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: