Search code examples
visual-studio-2010web-confignuget

Visual Studio 2010 nuget error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel


Whenever I'm trying to install something or even just list the packages I get this error "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel"

I tried this solution from Codeplex with no luck.

I use the latest version of Nuget.

I also tried different options in devenv.exe.config like this:

<servicePointManager  checkCertificateName="false"    checkCertificateRevocationList="false"/>

Solution

    • Go to VS2010 → Tools → Library Package Manager → Package Manager Settings.

    • Choose Package Manager → Package Sources.

    • Add a new package source as:

    • Move Up the newly added package source to first position.

    • UnCheck existing "Nuget official package source"

    • Restart VS2010.