Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An attempt to communicate with Azure DevOps failed because a token could not be retrieved

Tags:

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:

enter image description here

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?

like image 449
Sobansky Avatar asked Feb 11 '20 11:02

Sobansky


2 Answers

You may try the following items:

  1. Go to Control Panel > Credential Manager, and remove all Windows Credentials related to TFS.
  2. Close all Visual Studio instances, and delete the %LOCALAPPDATA%\.IdentityService folder if it exists.
  3. Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\x.0\Cache
  4. As @4c74356b41 mentioned, repair VS.
like image 91
Cece Dong - MSFT Avatar answered Oct 11 '22 02:10

Cece Dong - MSFT


As stated above, try doing only this step and see if it fixes the problem. It did for me.

  • Close all Visual Studio instances, delete %LOCALAPPDATA%.IdentityService if it exists.

It saves doing all the other steps.

like image 27
Justin Tolchin Avatar answered Oct 11 '22 03:10

Justin Tolchin