Clear stored TFS credentials in Visual Studio 2017

2019-01-07 15:07发布

I had to change my password for my account which is not the same account i log into my machine with. When connected to the local tfs server, I supplied my password to VS2017 and checked remember password. Now that the password has changed, I cannot connect.

I have tried to remove the tfs in credential manager and also deleted the .IdentityService. Neither have helped. Anyone know if they changed something with VS 2017 and they are cached or stored somewhere else?

4条回答
走好不送
2楼-- · 2019-01-07 15:38

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

查看更多
叼着烟拽天下
3楼-- · 2019-01-07 15:52

Clear the config from:

C:\users\<user>\AppData\Roaming\Microsoft\Visual Studio\15.0_<????>\TeamExplorer
查看更多
我只想做你的唯一
4楼-- · 2019-01-07 15:57

I tried to follow the steps listed in the other answer. But on first step I decided to try just editing the password in credentials manager. It worked for me.

So if anyone else is having the same problem you might want to try that first.

查看更多
倾城 Initia
5楼-- · 2019-01-07 15:57

I had face a typical problem with Visual Studio 2017. I was using VSTS. First time i had connected With one credential, later on i was trying to change credential. But it was not taking. Then after a long effort finally i found there have a folder.

C:\Users\ {your user name} \AppData\Local\GitCredentialManager

just delete all the file inside this folder and try. Hope it will work.

查看更多
登录 后发表回答