无法将 VS 2010、2012 和 2013 连接到 azure devops 服务器 2019

Trouble connecting VS 2010, 2012, and 2013 to azure devops server 2019

我在尝试将 Visual Studio 2010、2012 和 2013 连接到我们的 Azure DevOps Server 2019 实例时遇到错误。在每个版本中,当我尝试添加服务器时,我都会收到错误消息

TF31002: Unable to connect to this Team Foundation Server.

Technical Information: The request was aborted: Could not create SSL/TLS secure channel.

如果之后我再次尝试连接,我会看到这条消息。

The underlying connection was closed: An unexpected error occurred on a send.

我可以在 VS 2015、2017 和 2019 上正确连接。我在多台机器上都遇到了这个问题。这些机器在 Win 10 和 Win 2012R2 上。我还可以从这些机器上访问 TFS https 网站,团队项目也很好。

我找到了解决方法。看起来这是一个 TLS 问题。

运行 这个来自 powershell:

reg 添加 HKLM\SOFTWARE\Microsoft.NETFramework\v4.0.30319 /v SchUseStrongCrypto /t REG_DWORD /d 1 /f /reg:32