运行 dnu 恢复时出错:AddressFamily 117 对于 System.Net.IPEndPoint 端点无效,请改用 InterNetwork
Error while running dnu restore : The AddressFamily 117 is not valid for the System.Net.IPEndPoint end point, use InterNetwork instead
我正在尝试使用 dnx 运行 linux 上的 .NET 程序。
OS: centos 7
我同时安装了 mono 和 coreclr,dnvm 可以在两者之间切换。版本是 1.0.0-beta7-12264.
我尝试执行一个简单的 Hello World 程序和 运行 dnu restore 来下载依赖项。
但是它会抛出错误 AddressFamily 117 is not valid for IPendpoint。我尝试切换到 http:// 版本的 nuget 而不是 https 但这并没有解决问题。
这是错误输出
Restoring packages for /home/ganesh/Development/test/project.json
GET http://www.nuget.org/api/v2/ GET
http://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
http://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
http://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 at
System.Net.IPEndPoint.Create(SocketAddress socketAddress) at
System.Net.Dns.TryGetAddrInfo(String name, AddressInfoHints flags,
IPHostEntry& hostinfo) at System.Net.Dns.TryGetAddrInfo(String
name, IPHostEntry& hostinfo) at System.Net.Dns.GetAddrInfo(String
name) at System.Net.Dns.InternalGetHostByName(String hostName,
Boolean includeIPv6) at System.Net.Dns.GetHostAddresses(String
hostNameOrAddress)
原来coreclr还不支持恢复包。 dnu restore 必须在 mono 下 运行 然后我们可以切换到 coreclr 执行 dnx
我在单声道中也遇到超时问题,但在尝试 4-5 次后自行解决。
我正在尝试使用 dnx 运行 linux 上的 .NET 程序。
OS: centos 7
我同时安装了 mono 和 coreclr,dnvm 可以在两者之间切换。版本是 1.0.0-beta7-12264.
我尝试执行一个简单的 Hello World 程序和 运行 dnu restore 来下载依赖项。
但是它会抛出错误 AddressFamily 117 is not valid for IPendpoint。我尝试切换到 http:// 版本的 nuget 而不是 https 但这并没有解决问题。
这是错误输出
Restoring packages for /home/ganesh/Development/test/project.json
GET http://www.nuget.org/api/v2/ GET http://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 http://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 http://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 at System.Net.IPEndPoint.Create(SocketAddress socketAddress) at System.Net.Dns.TryGetAddrInfo(String name, AddressInfoHints flags, IPHostEntry& hostinfo) at System.Net.Dns.TryGetAddrInfo(String name, IPHostEntry& hostinfo) at System.Net.Dns.GetAddrInfo(String name) at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
原来coreclr还不支持恢复包。 dnu restore 必须在 mono 下 运行 然后我们可以切换到 coreclr 执行 dnx
我在单声道中也遇到超时问题,但在尝试 4-5 次后自行解决。