Wednesday, September 20, 2017

Switching user in visual studio 2015

Today when I logged into one of my VMs and started to use another Account with my Visual Studio 2015 - I have faced this issue - "Your account XXXX@YYYY.com cannot be connected to Visual Studio as you have already logged in with AAAA@BBBB.com. If you want to change the user - use Switch user. And if you want to continue, enter the credentials again" 

The error message might not be exactly the same, but you get the point. 


The solution I have applied is to clear of the register for the current User setting. You can do that by: 



  1. Open run > regedit
  2. Go to HKEY_CURRENT_USER > Software > Microsoft > VSCommon > 14.0 > ClientServices > VisualStudio > IdeUser
  3. Delete the existing ID
  4. Restart Visual Studio 
  5. Login with your desired credentials 
  6. and OLA... it should work. 
Happy coding!