string name =Dns.GetHostEntry(machineName).HostName
The size of hostName is too long. It cannot be longer than 255 characters.
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
machineName
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)