Reputation: 6377
I just performed a clean install of Visual Studio 2015 SP3, and I'm getting this in the Output window at startup:
We were unable to automatically populate your Visual Studio Team Services accounts.
The following error was encountered: TF400813: Resource not available for anonymous access. Client authentication required.
I'm not using VSTS at all, nor have I configured any connections to it. (I do, however, have a connection configured to an on-premises TFS instance.)
How may I dispense with this error message? I'd like to instruct Visual Studio to never attempt a connection to VSTS at startup.
Upvotes: 180
Views: 96503
Reputation: 1
Similar to the accepted solution, but I didn't have to log out. The solution for me (Visual Studio 2019) was to
After I did that (I clicked the link in #1 several times) then Git integration began to work again.
Upvotes: 0
Reputation: 11039
This solution fixed it for me:
del %localappdata%\.IdentityService\SessionTokens.json
Upvotes: 0
Reputation: 29976
You can disable the auto connection on startup via the following steps:
Note that you will get 'tfpt' is not recognized as an internal or external command, operable program or batch file
if you don't have TFS Power Tools installed. You can install them from Microsoft Visual Studio Team Foundation Server 2015 Power Tools.
Upvotes: 23
Reputation: 3403
In the top right corner of Visual Studio, you will find a colored box with your name or your initials inside. Click the down arrow and then Account Settings.
In the opening window, please click "Sign out" in the upper left part of the window.
After a restart of Visual Studio and signing back in, the error should be gone.
Upvotes: 311