NuGet VS 2012 ServicePointManager does not support proxies with the https scheme

后端 未结 9 1094
醉梦人生
醉梦人生 2021-02-18 13:07

I have recently upgraded from VS2012 RC to RTM, and since the upgrade to RTM, I can no longer access nuget. I receive the following error in the Manage NuGet Packages window.

相关标签:
9条回答
  • 2021-02-18 13:34

    A very late answer, but I've been getting the exact same message when restoring Nuget packages in VS 2015. It seems that last time I restarted my machine I didn't stop Fiddler, and Fiddler seems to have left something in a funny state. When I started and exited from Fiddler the issue went away.

    0 讨论(0)
  • 2021-02-18 13:48

    The solution is in this answer:

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

    The problem is related to a bad SSL cert on the default Nuget package source.

    0 讨论(0)
  • 2021-02-18 13:48

    I got this just by having Fiddler installed. I tried starting it and quitting to be sure it wasn't running but still couldn't get Nuget to work. There must be some other hooks left.

    0 讨论(0)
  • 2021-02-18 13:50

    I also faced the same issue for that I just closed my fiddler and restarted Visual Studio to solve the problem

    0 讨论(0)
  • 2021-02-18 13:51

    I started getting this in VS2015 on one of my machines. I had an additional package feed on myget which constantly asked me for credentials and failed even when entering correct credentials. What helped me was clearing the nuget cache and config by deleting these two nuget folders:

    • %APPDATA%\NuGet
    • %LOCALAPPDATA%\NuGet

    After that I restarted Visual Studio and added my custom package source again.

    0 讨论(0)
  • 2021-02-18 13:52

    I am not sure what happened in my nuget usage history but I end up stuck using proxy for my development machine. to make it work.

    1- open fiddler

    2- goto %AppData%\NuGet\NuGet.config

    Package sources

    <packageSources>
        <add key="nuget http" value="http://www.nuget.org/api/v2/" />
        <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
    </packageSources>
    

    3- config

    <config>
        <add key="HTTP_PROXY" value="http://127.0.0.1:8888" />
      </config>
    

    4- profit.

    0 讨论(0)
提交回复
热议问题