Switching Visual Studio user – Visual Studio Premium

visual-studio-2013

I want to switch the Visual Studio user but I got the following error.

We were unable to establish the connection because it is configured
for user user@mydoamin.de but you attempted to connect
using user boas.enkler@mydomain.de. To connect as a different user
perform a switch user operation. To connect with the configured
identity just attempt the last operation again.

I also tried to reset the user data like described here in this post but nothing changed. I also reinstalled Visual Studio and that didn't help.

Any hint?

Screenshot

Best Answer

There are two workable options I now use (in order):

As of Visual Studio 2013 Release 4

  • Ensure you login correctly using the current user ID it expects first.
  • Then logout from the Account Settings option on the account drop-down menu (top right, usually showing your name)
  • Now login again using the other account

It appears VS simply does not like to login to a different account while you are already logged in. Just make it happy first :)

Fallback option: You need to run devenv /resetuserdata at the command prompt.

To run the “switch user operation”:

  • Close all instances of VS2013 (Check Task Manager to make sure devenv.exe is not running).
  • Open a Developer Command Prompt for VS2013.
  • Type devenv /resetuserdata and wait for it to complete,.
  • Restart VS2013 and follow the usual “sign in” steps (with the desired account).

This process clears the same registry keys (and a few more) suggested by other solutions.