Signing out from TFS and sign in with new credentials

半世苍凉 提交于 2019-12-07 17:55:47

问题


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


回答1:


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.




回答2:


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.




回答3:


I'm using VS 2017. What worked for me is to comment out (or delete) the XML settings inside this file:

C:\Users\yourusername\AppData\Roaming\Microsoft\VisualStudio\15.0_9d86f7c0\Team Explorer\TeamExplorer.config



来源:https://stackoverflow.com/questions/41940549/signing-out-from-tfs-and-sign-in-with-new-credentials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!