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

后端 未结 4 1283
半阙折子戏
半阙折子戏 2021-02-19 07:22

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:

<

相关标签:
4条回答
  • 2021-02-19 07:50

    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, delete %LOCALAPPDATA%.IdentityService if it exists.
    3. Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\x.0\Cache
    4. As @4c74356b41 mentioned, repair VS.
    0 讨论(0)
  • 2021-02-19 07:50

    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.

    0 讨论(0)
  • 2021-02-19 07:50

    The same issue is still occurring in 2021. I had tried the sign out/sign in method, I had tried the local app data deletion method. No luck with either.

    What worked for me were the following steps.

    • Click on your name in the top right corner of Visual Studio and select Account Settings
    • Now rather than signing out, look below this to the All Accounts section. On some it will say "We need to refresh the credentials for this account"
    • Re-enter your credentials here.

    This fixed the issue for me. I hope this helps someone else with this annoying issue.

    0 讨论(0)
  • 2021-02-19 07:56

    Much easier solution to this. Close any open visual studio instances, restart visual studio as an administrator and connect to your ADO instance, i got this issue on cloning a repo personally, when i re-tried cloning again via web ADO the next time VS opened it worked just fine.

    0 讨论(0)
提交回复
热议问题