Код: Выделить всё
IPAddress ipAddr;
if (IPAddress.TryParse(mstrManIPAddress, out ipAddr) != true) {
continue;
}
host = Dns.GetHostEntry(ipAddr);
Код: Выделить всё
System.Net.Sockets.SocketException
HResult=0x80004005
Message=No such host is known
Source=System
StackTrace:
at System.Net.Dns.InternalGetHostByAddress(IPAddress address, Boolean includeIPv6) in System.Net\Dns.cs:line 261
at System.Net.Dns.GetHostEntry(IPAddress address) in System.Net\Dns.cs:line 622
at clsPinger.Pinger(Object objSender, DoWorkEventArgs objEvtArgs) in C:\LocalDev\VisualStudio\clsPinger.cs:line 943
This exception was originally thrown at this call stack:
System.Net.Dns.InternalGetHostByAddress(System.Net.IPAddress, bool) in Dns.cs
System.Net.Dns.GetHostEntry(System.Net.IPAddress) in Dns.cs
clsPinger.Pinger(object, System.ComponentModel.DoWorkEventArgs) in clsPinger.cs
Подробнее здесь: https://stackoverflow.com/questions/790 ... thostentry