Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

dotnet restore failure - 407 (authenticationrequired)

$
0
0

Hi.

I have seen my problem mentioned in many places but none of the solutions listed have worked for me.

I have joined a team using ASP.Net (Core 1.0) and the nuget restore doesn't work, it doesn't work in Visual Studio (2015 Update 3) or using 'dotnet restore' from the command prompt.

The error message is:

error: Unable to load the service index for source https://api.nuget.org/v3/index.json.
error:   Response status code does not indicate success: 407 (authenticationrequired).

Here is what I have tried so far:

1) Running the applications as Adminsitrator.

2) Running Fiddler with Rules > Automatically Authenticate set to true, port = 8888.

3) Changing my .npmrc file to, tried with and without the last '/'

proxy=http://127.0.0.1:8888/
https-proxy=http://127.0.0.1:8888/
ca=
strict-ssl=false
registry=http://registry.npmjs.org/

I also tried the url as http://username:pass@127.0.0.1:8888 but it didn't work.

4) Adding this xml to the config files:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe.config

<system.net><defaultProxy enabled="true" useDefaultCredentials="true"><proxy bypassonlocal="true" proxyaddress="http://127.0.0.1:8888" /></defaultProxy><settings><ipv6 enabled="true"/></settings></system.net>

None of these attempts has made any difference and I can't see any other suggested solutions to try.

Can anyone suggest anything else?

Thanks, Vincent


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>