I am having trouble downloading the Service Index file. I have searched probably the whole internet for a solution, but none of the found ways solved the problem. Well, I have a Nuget repository problem at work:
Unable to load the service index for source https://api.nuget.org/v3/index.json. An error occured while sending the request. The underlying connection was closed: An unexpected error occured on a send".
I can download the file in any browser except Internet Explorer (the error description suggests a problem with invalid TLS/SSL). I found a script to test downloading the file for every encryption protocol supported by the system, but none worked. The problem is occurring on Windows 10, Visual Studio 2019, and Visual Studio 2022 and appeared after a system update last Thursday/Friday.
I have tried:
- adding a proxy entry to devenv.config in the <system.net> section
- changed TLS-related settings in the registry (disabling TLS13, enabling TLS12), entries forcing TLS usage on NET
- deleting in the user directory a file with a list of nuget repositories
- reinstall visual studio
From a coworker I received a (probably old address) nuget repository (https://nuget.org/api/v2) that works without problems. Anyone have any idea how else to bite the problem with v3?