Im working VS 2015 and TFS 2015. By mistake I logged into TFS with a different credentials which is some what unused one. But after that TFS connection manager not asking for new credentials and its using the details I entered first.
So based on some search I found we can remove that from Credential manager but unfortunately its not showing anything related to TFS.
Also based on another solution I opened integrated web broswer window in VS and opened the TFS page. There its login default with my first details. So when ever I click on the name, the broswer freezes and VS crashes and restarts.
So I really got stucked and having no idea what to do. So what can I do to signoff the first credentials from TFS
Click on two credentials modify link, click the link Remove from vault to remove stored TFS credentials. Now, When you login into Visual Studio you will be asked to give credentials to connect TFS. Note: Don't forgot to uncheck the option Remember my credentials to force to ask credentials for every TFS connections.
1. Go to Control Panel (Start -> Control Panel). 5. Click on two credential's modify link, click the link Remove from vault to remove stored TFS credentials.
Where is the credentials information stored? Actually Windows stores the credentials information at Control panel\User Accounts\Manage Your Network Passwords (or Control Panel\User Accounts and Family Safety\Credential Manager). For example, I'm using Dynamsoft TFS Hosting service.
It's strange that only local windows account can show the TFS credential under the Credential manager. So if you are using local user, you can remove the credentials from Credential manager: Go to Control Panel > User Accounts > Manage Your Credentials > select your Team foundation Server and choose remove.
If you are using domain user it shows nothing TFS related credentials under Credential manager, in this case please try to run Visual Studio using this command instead:
runas /netonly /user:<account> devenv.exe
This should have the Visual Studio to run with another Windows user so it can connect to remote TFS with different credentials.
Go to Credential Manager
Delete the TFS related credentials
Then in Credential Manager add Generic Credentials for the TFS account. This would overwrite the cached credentials.
I tried so many different things and this is what worked for me. Hopefully it works for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With