Clear stored TFS credentials in Visual Studio 2017

Please try below items to narrow down the issue:

  • Remove the TFS related credentials from Credential Manager
  • In Credential Manager add the new updated Generic Credentials for the TFS account.
    Generally, this would overwrite the cached credentials.

  • Close all Visual Studio instances, delete
    %LOCALAPPDATA%\.IdentityService as you did.

  • Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\7.0\Cache

  • Clear all the browser caches especially for the stored password

  • Restart Visual Studio > Team Explorer > Manage Connections to check
    if the Enter credential dialog popup. Just try this several times.
    Based on my test the dialog will popup the first time, but if you cancel
    it, then you have to restart VS to popup it again.

  • Run Visual Studio as another user:

    cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE

    runas /netonly /user:<account> devenv.exe

    Enter the user possword, then Team Explorer > Manage Connections

Leave a Comment