0

A few days ago I changed my primarly alias for my Microsoft Account. Now I want to checkin my code, and get some error messages:

An attempt to communicate with Visual Studio Team Services failed because a token could not be retrieved.

You are anot authorized to access [...]

Here is a picture of it:

Picture of the error messages

As suggested, I already tried re-entering my credentials. But this has no effect. I already tried closing Visual Studio, restarted my PC, but nothing helps. How can I solve the problem?

2 Answers 2

5

I solved the issue by deleting the following folder after I have closed Visual Studio:

%LOCALAPPDATA%\.IdentityService

Then I opened Visual Studio again, and clicked Manage Connections:

Picture of Manage Connections

Finaly I have connected again to my Microsoft Account, restarted Visual Studio and was able to check in my code.

3
  • 1
    Self answers can not be accepted within the first 2 days @AndyLi-MSFT Sep 12, 2018 at 6:46
  • to get to the mentioned folder, paste %LOCALAPPDATA% into windows search field Feb 18, 2020 at 13:13
  • or paste above string into win + r Feb 18, 2020 at 13:59
0

I found that deleting the hidden .vs folder within the solutions directory resolved the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.