Troubleshoot logout from TFS Service when using multiple live Id

If you are using multiple live id to connect to the same instance of TFS Preview (I’m, using a couple of different ID to demo authentication feature), you can find difficulties to logout from inside Visual Studio. In Figure 1 you can visualize the standard Connect to Team Project page, and in the bottom left corner you find information about the user currently logged to TFS.


Figure 1: Standard form to connect to a TFS team project, after the installation of the hotfix to connect to TFS Preview

Now if you press “Sign Out” the standard login form of TFS Preview appears and it should prompt you for a new login, but sometimes it happens that the form automatically logins you again so you are not able to logout. This happens sometimes when You check the “log me automatically” checkbox, but now you are unable to change the user you are using to login to TFS Preview.

A simple workaround is open a Web Browser window (in menu View->other windows->Web Browser"), navigate to your TFS Preview web site and you should be already logged with the same user you see in the “Connect to Team Project” window. Now you can simply logout from the site


Figure 2: Signout the current user from TFS Service web side from a Web Browser inside Visual Studio.

Now you are logged out and even if you are redirected to a page that tells you “Sign-out isn’t complete” you can just close all instances of Visual Studio, then, if you open again the “Connect to Team Project” dialog, you should now be prompted for login and you are finally able to change the TFS Preview Logged User

Gian Maria.

Published by

Ricci Gian Maria

.Net programmer, User group and community enthusiast, programmer - aspiring architect - and guitar player :). Visual Studio ALM MVP

3 thoughts on “Troubleshoot logout from TFS Service when using multiple live Id”

  1. Thanks for a handy tip, but you have to agree it’s still not optimal.

    I’m trying to use 2 accounts for different 2 repositories (1 set is personal, 1 set is professional).

    This means that if I switch repo, I get stuck in a logging in/no permissions loop.

    After about 30 seconds, gives up and says the service is unavailable. It’s then possible to use the “Signup” link on the error page to navigate back to a login prompt at which point I can choose “Sign in with a different acct”

    I’ll give your method a go next time, thanks

  2. In your scenario I suggest you trying if possible to use the very same live id for both repositories. I have my main tfspreview repository that is private, then I have another one that is quite public and I use it for demo purpose. Suppose they are associated to and

    Now I enter in the demo with, set as an administrator and I can manage everything with a single account.

    I then usually keep each different browser logged with a different live id .. just to avoid problems. And, you are right, this is quite annoying. :)

Comments are closed.