Thanks in advance ,
I am getting error when using "Dns.Resolve" which is an obsoleted method
BuildConnection(Dns.Resolve(ServerAddr).AddressList(0), FtpPort)
System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found
when using GetHostEntry then this error is coming
BuildConnection(Dns.GetHostEntry(ServerAddr).AddressList(0), FtpPort)
System.Net.Sockets.SocketException: No such host is known
Private Sub BuildConnection(ByVal ServerAddr As IPAddress, ByVal FtpPort As Int32)
end sub
any suggestion will be appreciated.