An attempt to communicate with Azure DevOps failed because a token could not be retrieved. Please re-enter your credentials.


Problem: Few days ago I have alias my office account/email address and after that I can not login to Azure Devops/VSTS from Visual Studio 2017 & 2019. When I was trying to login it is asking my credentials several times but after that I got below error message
An attempt to communicate with Azure DevOps failed because a token could not be retrieved. Please re-enter your credentials.

Solution: I just deleted the .IdentityService folder from %LOCALAPPDATA%

Reference : https://stackoverflow.com/questions/52261545/how-do-i-connect-to-my-teamproject-after-i-changed-my-primary-account-alias