NuGet Package Manager Error in Visual Studio 2022 on Windows 11

Syed Aun M. Bukhari 5 Reputation points
2025-05-14T15:57:20.53+00:00

The NuGet Package Manager has suddenly stopped working in Visual Studio 2022 on a Windows 11 PC. An error occurs when trying to load the Package Manager, displaying the following message:

[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. Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

Attempts to resolve the issue include:

  • Updating Visual Studio, which did not help.
  • Confirming that no proxy is configured on the network.
  • Verifying that all links work in the browser, but the URL https://api.nuget.org/v3/index.json is inaccessible.
  • Deleting %AppData%\Roaming\NuGet\NuGet.Config, which did not help.
  • Adding TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 in the registry editor, which also did not help.
  • Ensuring no firewall policies are active and temporarily removing antivirus software, which did not resolve the issue.

The Package Manager was previously functioning smoothly but has now stopped working unexpectedly. Additionally, tried accessing the https://api.nuget.org/v3/index.json in browsers (Chrome, Firefox, and IE) is not working (ERR_CONNECTION_RESET).

Developer technologies | Visual Studio | Setup
{count} vote

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.