19 June 2015

Switching user in visual studio

By ollietrex

Switching companies means switching MSDN licenses, switching the login for visual studio on my own machine I cam across the following error:

We were unable to establish the connection because it is configured for user [email protected] but you attempted to connect using user [email protected] To connect as a different user perform a switch user operation. To connect with the configured identity just attempt the last operation again.

A quick Google and I came across this stackoverflow question and the problem is solved in four simple steps:

  1. Close Visual Studio
  2. Start the Developer Command prompt installed with Visual Studio as an administrator.
  3. Type ‘devenv /resetuserdata’ (‘wdexpress /resetuserdata’ for Express SKUs)
  4. Start Visual Studio Normally.

Stackoverflow to the rescue again 🙂