So I have a few VMs, and most of them have different source control providers and/or credentials. My primary development VM is attached to my personal TFS instance. A VM I use for one of my customers needs to be attached to another TFS instance with another Microsoft account. I based the new VM off of the primary development VM (tied to my personal TFS instance and user account). Problem comes in when VS2013 with its new account management won’t allow you to connect and tells you that you need to perform a “switch user” operation to be able to log in with another account. You’ll see an error message that reads:
Sorry, we ran into a problem
We were unable to establish the connection because it is configured for
user <account 1> but you attempted to connect using user <account 2>. To
connect as a different user perform a switch user operation. To connect
with the configured identity just attempt the last operation again.
To perform the mysterious “switch user operation”, do the following:
- Close all instances of VS2013. Check Task Manager processes to make sure devenv.exe is not running.
- Open the Developer Command Prompt for VS2013.
- Type devenv /resetuserdata and wait for it to finish.
- Start VS2013 and follow the “sign in” steps with the other account.
NOTE: I also had to supply a static VS2013 license to use the other account. My MSDN subscription is tied to the primary account and it figured it out by itself. You might need to do the same if the other account is not tied to an MSDN subscription.