I have ArchLinux
distro, I'm testing .Net SDK
on Linux
for the first time. I installed a trial version of JetBrains Rider IDE
. I created new ASP.Net Core
project, but I get this error message in the Event Log
window when building the solution or manually restoring Nuget packages of the solution:
1:51 PM Can't restore NuGet packages in integrated projects Failed to retrieve information about 'Microsoft.AspNetCore.WebUtilities' from remote source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json'. Settings Log Packages folder
1:51 PM Restore failed Failed to retrieve information about 'Microsoft.AspNetCore.WebUtilities' from remote source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json'. Settings Log Packages folder
This is the Log
window content, as it's very large content I uploaded it to google drive: Here
Is anyone has faced this problem before? Also, why rider is trying to fetch all Nuget packages on planet Earth? I don't have a reference to Microsoft.Win32.Registry
and one of these error lines complain:
COREMINIMAL: Failed to download package 'Microsoft.Win32.Registry.4.4.0'
EDIT 1
After, trying dotnet restore
I get the following output:
$ dotnet restore
Permission denied to modify the '/opt/dotnet/sdk/NuGetFallbackFolder' folder.
Here are some options to fix this error:
---------------------
1. Re-run this command with elevated access.
2. Disabled the first run experience by setting the environment variable DOTNET_SKIP_FIRST_TIME_EXPERIENCE to true.
3. Copy the .NET Core SDK to a non-protected location and use it from there.
Restoring packages for /home/m/Prog Projects Mid 2018/CSharp/testingRider/WebApplication1/WebApplication1/WebApplication1.csproj...
Failed to download package 'Microsoft.Win32.Registry.4.4.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.4.0/microsoft.win32.registry.4.4.0.nupkg'.
The download of 'https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.4.0/microsoft.win32.registry.4.4.0.nupkg' timed out because no data was received for 60000ms.
Exception of type 'System.TimeoutException' was thrown.
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json'.
An error occurred while sending the request.
SSL connect error
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.mvc.viewfeatures/index.json'.
An error occurred while sending the request.
The output is long too, and most of it is about retrying
to download packages.
Restore and Upgrade NuGet packages We recommend using force restore for large projects. It is available in the main menu (Tools | NuGet | NuGet Force Restore) or in the NuGet quick list Alt+Shift+N .
You can quickly create a NuGet package for your . NET or . NET Standard project — right-click the project in the Solution Explorer and choose Advanced Build Actions | Pack Selected Project from context menu. JetBrains Rider will create NuGet packages using the dotnet pack command.
Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.
According to the attached Rider and dotnet
logs, this problem is not related to Rider IDE.
There appears to be some first-time experience feature of dotnet
that requires an access to dotnet/sdk/NuGetFallbackFolder
which is not given so you get an error in the logs but that is probably not the real root case.
The issue is somewhere in your network between your computer and NuGet server as per the log message The download of 'https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.4.0/microsoft.win32.registry.4.4.0.nupkg' timed out because no data was received for 60000ms.
You should probably check your network and dotnet/NuGet settings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With