Be very careful if you would try to replace GetHostByName with GetHostEntry.
About an year ago I also tried to replace GetHostByName deprecated warning
with GetHostEntry.
The problem is that GetHostEntry doesn't work correctly on some of the OSes.
I think at least XP was affected. There was quit long discussion on MSDN
forums regarding this problem. May be since then this problem has been fixed
with a hotfix or SP, but anyway do pay attention to this issue.
Regards,
Yury
"John" <Jo**@nospam.infovis.co.ukwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
Hi
I am getting obsolete function warnings on these two liens but can't
figure the correct syntax for the new equivalent functions;
ConfigurationSettings.AppSettings.Get(key)
Dns.GetHostByName(_strServer)
Would appreciate if someone can give me some hints to get rid of the
obsolete function warnings on these two lines.
Thanks
Regards