清除 Visual Studio 2017 中存储的 TFS 凭据 [英] Clear stored TFS credentials in Visual Studio 2017

查看:41
本文介绍了清除 Visual Studio 2017 中存储的 TFS 凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不得不为我的帐户更改密码,这与我登录我的机器时使用的帐户不同.当连接到本地 tfs 服务器时,我向 VS2017 提供了我的密码并检查了记住密码.现在密码已更改,我无法连接.

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.

我尝试删除凭证管理器中的 tfs 并删除了 .IdentityService.两者都没有帮助.任何人都知道他们是否使用 VS 2017 更改了某些内容并将它们缓存或存储在其他地方?

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?

推荐答案

请尝试以下项目以缩小问题范围:

Please try below items to narrow down the issue:

  • 凭据管理器
  • 中删除与 TFS 相关的凭据
  • 在凭据管理器中,为 TFS 帐户添加新更新的通用凭据.通常,这会覆盖缓存的凭据.

  • 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.

关闭所有 Visual Studio 实例,删除%LOCALAPPDATA%\.IdentityService 和你一样.

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

清除 TFS 缓存 %LOCALAPPDATA%\Microsoft\Team Foundation\7.0\Cache

清除所有浏览器缓存,尤其是存储的密码

Clear all the browser caches especially for the stored password

重新启动 Visual Studio > 团队资源管理器 > 管理连接以检查如果 Enter credential dialog 弹出窗口.试试这个几次.根据我的测试,该对话框将第一次弹出,但如果您取消它,然后你必须重新启动VS才能再次弹出它.

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.

以其他用户身份运行 Visual Studio:

Run Visual Studio as another user:

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

runas/netonly/user:devenv.exe

输入用户密码,然后Team Explorer > Manage Connections

Enter the user possword, then Team Explorer > Manage Connections

这篇关于清除 Visual Studio 2017 中存储的 TFS 凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆