-
Notifications
You must be signed in to change notification settings - Fork 347
Argument Exception when trying to run dnu restore #147
Comments
I have tried this on Ubuntu 14.04 with the same result. Also changed the endpoint to http:// instead of https. No luck |
Restoring packages isn't supported on the CoreCLR-based DNX yet. You need to switch to the Mono-based DNX, restore there, switch back to CoreCLR and then run. See https://github.com/dotnet/coreclr/blob/master/Documentation/install/get-dotnetcore-dnx-linux.md#run-your-app |
Hi @akoeplinger thanks for your reply. I tried switching to mono but am getting another error. I had switched to coreclr because dnu restore wasn't working on mono first. I also tried to remove all runtimes and start from scratch. still no go :( "Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.TaskAwaiter`1' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'." ⇒ dnvm install -r mono latest -u Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.TaskAwaiter |
Which Mono version ( |
@akoeplinger Found the issue. I had installed mono-core package from epel repo. That doesn't work with dnu. After removing it and adding mono repo to yum and installing mono-complete it's working fine. Thanks! I am able to run the code now |
Please close the issue. Appreciate the support! |
Thanks,@akoeplinger. |
Hi I am trying to run the demo Hello World program on Centos7 but getting the error. It isn't able to install the dependencies.
⇒ dnu install System.Console
Microsoft .NET Development Utility CoreCLR-x64-1.0.0-beta7-12264
GET https://www.nuget.org/api/v2/
GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Console'
Warning: FindPackagesById: System.Console
The AddressFamily 117 is not valid for the System.Net.IPEndPoint end point, use InterNetwork instead.
Parameter name: socketAddress
GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Console'
Warning: FindPackagesById: System.Console
The AddressFamily 117 is not valid for the System.Net.IPEndPoint end point, use InterNetwork instead.
Parameter name: socketAddress
GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Console'
Error: FindPackagesById: System.Console
The AddressFamily 117 is not valid for the System.Net.IPEndPoint end point, use InterNetwork instead.
Parameter name: socketAddress
System.ArgumentException: The AddressFamily 117 is not valid for the System.Net.IPEndPoint end point, use InterNetwork instead.
Parameter name: socketAddress
The text was updated successfully, but these errors were encountered: