无法在 VS 2022 中登录 Visual Studio 帐户

Hig*_*ter 9 azure visual-studio

当单击 Visual Studio 上的登录按钮时,出现错误,然后 VS 完全没有响应:

\n

尝试登录

\n

错误如下

\n
We could not add the account\nUnknown Status: Unexpected\nError: 0xffffffff80070520\nContext: Unexpected exception while waiting for accounts control to finish:\n        \'A specified logon session does not exist. It may already have been terminated.\'\nTag: 0x1f7d734b (error code -2147023584) (internal error code 528315211)\n
Run Code Online (Sandbox Code Playgroud)\n

我们使用 TFS 进行源代码控制,但在网上搜索解决方案,此错误似乎总是与 Git 相关(或者可能只是更流行?),因此解决方案提到了 GCM 凭证助手,它是 Git 的一个选项,但不适用于 TFS。

\n

我也无法通过 VS 访问 TFS 服务器 - 当我第一次打开它时,我在输出窗口中看到以下消息:

\n
TF205020: Could not connect to server \xe2\x80\x98[server]\xe2\x80\x99. This server was used in your last session, but it might be offline or unreachable.\nConfirm that the server is available on the network. To attempt to connect again, or to a different server, click \xe2\x80\x98Connect To Azure DevOps Server\xe2\x80\x99 in Team Explorer or the Team menu.\n\nThe server returned the following error: TF30063: You are not authorized to access [server].\n
Run Code Online (Sandbox Code Playgroud)\n

我能够确认 TFS 服务器在网络上可用;我可以使用同一帐户在浏览器中登录并访问它。我点击了Help->My Subscription->Benifits它,当它在浏览器中打开时,我也可以在那里正常登录。

\n

昨天下午,我使用的帐户被 Windows 锁定,但在 Active Directory 中又恢复了 - 这是我从那时起第一次登录 VS,这似乎是问题原因的有力旁证!

\n

我怎样才能登录?

\n

编辑-添加附加信息:

\n

我卸载了 Visual Studio 2022,然后重新安装,并在第一次打开新安装的应用程序时出现登录窗口,但出现了相同的错误。

\n

新安装,同样的错误

\n

use*_*784 13

在此输入图像描述这似乎已经解决了我的问题……只是运气好而已。步骤如下链接:单击此处我尝试了此操作在“帐户设置”窗口中单击“帐户选项”,将“添加并重新验证帐户使用:”的下拉列表从“嵌入式网络浏览器”更改为“系统网络浏览器”。但几次尝试后都没有打开浏览器,因此将设置重新设置为“嵌入式”。再次尝试登录,成功了。

打开 VS 2022 -> 工具(在最顶部) -> 选项 ,搜索 connect,在环境 -> 帐户下查看,然后按照上述其余步骤操作

  • 是的,你救了我的命。我还使用另一个(更高特权的)帐户运行 VS2022,而不是我登录 Windows 的帐户。我认为嵌入式浏览器对此不太满意,对我来说,问题是在今天早上更新到 VS 2022 17.7.5 时开始的,所以也许更新后有些东西发生了变化 (2认同)