How do I connect to my Teamproject, after I changed my primary Account Alias?

偶尔善良 提交于 2020-06-29 04:13:40

问题


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:

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?


回答1:


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:

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




回答2:


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



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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!