尝试与Azure DevOps通信失败,因为无法检索令牌

尝试与Azure DevOps通信失败,因为无法检索令牌

问题描述:

我控制的项目是Azure DevOps.每次当我在Visual Studio中打开其中一些解决方案时,在团队浏览器中都会出现以下错误:

I have projects that I have controlled be Azure DevOps. Every time when I open some of these solutions in the Visual Studio I get following error in the team explorer:

因此,当我重新输入凭据时,我再次遇到相同的错误.但是,当我重新启动Visual Studio时,我的项目突然正确连接到Azure DevOps.

So when I re-enter my credentials I get the same error again. But when I restart Visual Studio my project is suddenly properly connected to Azure DevOps.

您能告诉我为什么会有这个问题以及如何解决吗?

Could you tell me why I have this issue and how to solve it?

您可以尝试以下各项:

  1. 转到控制面板-凭据管理器",然后删除所有与TFS相关的Windows凭据.
  2. 关闭所有Visual Studio实例,删除%LOCALAPPDATA%.IdentityService(如果存在).
  3. 清除TFS缓存%LOCALAPPDATA%\ Microsoft \ Team Foundation \ x.0 \ Cache
  4. 如@ 4c74356b41所述,修复VS.