Failed To Download Package 'xxxxx' From 'xxxxx/nuget/v3/flat2/xxxxx/xxxxx/xxxxxx.nupkg'. The SSL Connection Could Not Be Established, See Inner Exception

When launching Studio and restoring dependencies, the following error pops up: Failed to download package 'xxxxx' from 'xxxxx/nuget/v3/flat2/xxxxx/xxxxx/xxxxxx.nupkg'. The SSL connection could not be established, see inner exception. Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host"

This issue occurs with the new feed whitelisted on Robots (pkgs.dev.azure.com). With the old feed URL (https://www.myget.org/F/workflow/api/v3/index.json), all dependencies are resolved correctly and the packages are installed.

Troubleshooting:

Check the network traffic.

If a 303 HTTP status code is being shown, it indicates that the requested resource has been temporarily moved to a different URI or location, and the response should be retrieved using a GET request on the provided location.

In the response, there should be "location" header that contains the new URL where the resource can be found. For example: location: https://{endpointName}.blob.core.windows.net/b-e8990283db6746a5b3ae509592ae787b/955E1ABE5AB9CA54B4FCB0AEDE1A8BE69677A5945415ACB14AEFECE70AE03CDE00.blob?sv=2019-07-07&sr=b&si=1&sig=3fToAYmxasQ9T3CgWKSRwuYLPKFoMjy5il8%2F1xRq1k8%3D&spr=https&se=2023-05-24T03%3A55%3A08Z&rscl=x-e2eid-c7b57952-ed1b40fa-b7d778d9-83d0ac9b-session-c7b57952-ed1b40fa-b7d778d9-83d0ac9b&rscd=attachment%3B%20filename%3D%22microsoft.extensions.dependencyinjection.abstractions.3.1.6.nupkg%22

A 303 status code is not an error itself, but instead, it informs the client (Studio, in this case) that it should make a new GET request to the provided location to retrieve the resource. Studio should automatically handle this redirection and download the package from the provided URL specified in the "location" header.

Resolution:

This issue is related to the network setup or security configuration blocking the request to the new URL.

  • Define a white-list entry with the new URL: (blob.core.windows.net) .