Skip to main content This browser is no longer supported. Show Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. NuGet Error NU1301
In this articleThe local source 'C:\Code\Contoso\contosoLocalSource' doesn't exist. IssueRestore could not be completed because the listed source is unavailable. SolutionConsult the error message for more details. You may need to inform the source owner as there might be issues that only they can address. Alternatively, you can try removing the source from the configuration retry again. The configured source may not be necessary for your build. FeedbackSubmit and view feedback for Visual Studio 2022 gives an error when trying to browse NuGet. I get these errors on 2 different Windows Servers (2016) I’ve tried. One running Visual Studio 2017, the other running Visual Studio 2019 and 2022. Visual Studio 2017:
Visual Studio 2022:
Note that we do not use a proxy. Loading https://api.nuget.org/v3/index.json with both Chrome and Edge work.
Things I’ve tried that have failed to resolve it updated Visual Studio Clearing nuget cache from within Visual Studio Deleted NuGet.Config from C:\Users\<user>\AppData\Roaming\NuGet Modified C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.com based on tips I found. I know it’s possible that what I changed was not correct. Reverted back. Registry changes: Computer\HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client
Computer\HKEY LOCAL MACHINE\SYSTEM\ CurrentControl Set) Control SecurityProviders \SCHANNEL\Protocols\TLS 1.2\Client
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v2.0.50727
Tried moving the server's Active Directory object out of the current AD OU which has a Group Policy configured with specific ciphers enabled, and the order of preference, into a new OU with this NOT configured. Tried disabling anti-virus software Reference links, things I've tried or looked
into: At this point, I'm run out of ideas. It seems like Visual Studio is not adhering to the system's default TLS settings (1.2) but it could possibly be something else. Is API NuGet org down?All systems are operational. Last checked in a day.
Where is the NuGet config file located?NuGetDefaults.Config location. How do I check NuGet version?In Visual Studio, use the Help > About Microsoft Visual Studio command and look at the version displayed next to NuGet Package Manager. Alternatively, launch the Package Manager Console (Tools > NuGet Package Manager > Package Manager Console) and enter $host to see information about NuGet including the version.
How do I run a dotnet restore in Visual Studio 2019?Restore packages manually using Visual Studio
Enable package restore by choosing Tools > Options > NuGet Package Manager. Under Package Restore options, select Allow NuGet to download missing packages. In Solution Explorer, right click the solution and select Restore NuGet Packages.
|