简体   繁体   English

Visual Studio Team Explorer失去了Visual Studio Online的Git授权

[英]Visual Studio Team Explorer lost Git authorization for Visual Studio Online

When I try to communicate with the remote repo (fetch, push, pull), I just get this exception: 当我尝试与远程repo(fetch,push,pull)通信时,我只是得到了这个异常:
TF400813: Resource not available for anonymous access. TF400813:资源不可用于匿名访问。 Client authentication required. 需要客户端验证。

I can do the same using GitExt or git bash without problems, so it seems like it's just VS that lost some setting. 我可以使用GitExt或git bash做同样没有问题,所以看起来只是VS失去了一些设置。 I can't find anywhere to "re-authenticate" or similar, though. 但是我无法找到“重新验证”或类似的地方。 I do have basic credentials set up, and am signed in with the same live id in Visual Studio. 我确实已经设置了基本凭据,并在Visual Studio中使用相同的实时ID登录。

Visual Studio uses Live ID to talk to visualstudio.com and shares the credentials with Internet Explorer for a single signon experience. Visual Studio使用Live ID与visualstudio.com交谈,并与Internet Explorer共享凭据以获得单点登录体验。 It's likely that your browser has some Live ID cookies (which is why you're not prompted), but not for the credentials you actually want to authenticate with (which is why you get permission denied). 您的浏览器可能有一些Live ID cookie(这就是您没有被提示的原因),但不是您实际想要进行身份验证的凭据(这就是您获得权限被拒绝的原因)。

Can you close Visual Studio, open Internet Explorer and explicitly log out of your Microsoft Account? 您可以关闭Visual Studio,打开Internet Explorer并明确注销您的Microsoft帐户吗?

When you restart Visual Studio, you should then be prompted for credentials when you connect to Visual Studio Online. 重新启动Visual Studio时,应在连接到Visual Studio Online时提示您输入凭据。

I had same problem and solution by Edward Thompson didn't helped me. 我有同样的问题和解决方案,爱德华汤普森没有帮助我。 However I found another one - in Visual Studio open: 但是我找到了另一个 - 在Visual Studio中打开:

Help / About Microsoft Visual Studio / License status (link in upper right corner) 帮助/关于Microsoft Visual Studio /许可证状态(右上角的链接)

There in new window in section All Accounts I had a message at my Microsft Account that I need to reenter credentials. 在所有帐户部分的新窗口中我在我的Microsft帐户上有一条消息,我需要重新输入凭据。 When I did it, I was able again to connect to Git repositories in Visual Studio Online. 当我这样做时,我又能够连接到Visual Studio Online中的Git存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 团队资源管理器+ Visual Studio Online + Git不同步 - Team Explorer + Visual Studio Online + Git out of sync Visual Studio Team Explorer - 查看 Git 命令 - Visual Studio Team Explorer - View Git Commands 更改 Visual Studio Team Explorer 的 GIT 帐户 - Change GIT account of Visual Studio Team Explorer Git - 在 Team Explorer Visual Studio 上撤消提交 - Git - Undo a commit on Team Explorer Visual Studio Visual Studio团队资源管理器+ VS在线同步错误 - Visual Studio Team Explorer + VS Online Sync error Visual Studio Online上的远程分支未出现在Visual Studio 2015 Team Explorer中 - Remote branch on Visual Studio online doesn't appear on Visual Studio 2015 Team Explorer 如何使 git push origin --force ; 在 Visual Studio 团队资源管理器中 - how to make git push origin --force ; in Visual Studio Team Explorer git - Visual Studio 团队资源管理器显示的更改实际上并不存在 - git - Visual studio team explorer is showing changes that are not actually there 是否可以恢复在 Visual Studio -> Team Explorer -> Git 中所做的撤消更改? - Is it possible to revert the undo changes done in Visual Studio -> Team Explorer -> Git? 在Team Explorer中为Visual Studio 2013选择GIT MERGE的选项在哪里? - Where is the option to do a GIT MERGE in Team Explorer for Visual Studio 2013?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM