title: NuGet Unable to load the service index for source Authentication failed
body: <p>Since today for some reason I'm unable to connect to the NuGet package manager through Visual Studio.</p>
  <pre><code>[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json.
    An error occurred while sending the request.
    The underlying connection was closed: An unexpected error occurred on a send.
    Authentication failed because the remote party has closed the transport stream.
  </code></pre>
  <p>But I cannot get it to work again...
  Things I tried.</p>
  <ul>
  <li>Delete NuGet.config</li>
  <li>Clear NuGet cache</li>
  <li>Disable TLS1.0 and TLS1.1 explicitly</li>
  <li>Enabled TLS1.2 explicitly</li>
  <li>followed the manual from nuget at <a href="https://devblogs.microsoft.com/nuget/deprecating-tls-1-0-and-1-1-on-nuget-org/" rel="nofollow noreferrer">https://devblogs.microsoft.com/nuget/deprecating-tls-1-0-and-1-1-on-nuget-org/</a></li>
  <li>Different Visual Studios</li>
  <li>Update to the latest Visual Studio 2019</li>
  <li>Tried different TLS settings in the RegEdit for 1.0, 1.1 and 1.2. I don't have a TLS1.3 section yet.</li>
  <li>I can browse to <a href="https://api.nuget.org/v3/index.json" rel="nofollow noreferrer">https://api.nuget.org/v3/index.json</a> with chrome</li>
  </ul>
  <p>TLS1.2 Client settings:
  <a href="https://i.stack.imgur.com/7mIZn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7mIZn.png" alt="TLS1.2" /></a></p>
  <p>TLS1.2 Server settings:
  <a href="https://i.stack.imgur.com/kgq0J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kgq0J.png" alt="TLS1.2" /></a></p>
  <p>Specs:
  Windows Server 2012R2, Visual Studio 2019</p>
  <p>Also tried it on a different Windows Server 2012R2 machine and same problem</p>
  <p>It is still working on my laptop with Windows 10.</p>
  <p>Hopefully someone has an idea.</p>
  <p>Thanks</p>