[MonoDevelop] Unknown identifier: Dns getting local IP with GetHostEntry

Steve Ricketts velocedge at hotmail.com
Tue Feb 23 13:16:49 EST 2010

Mono 2.6.1, MonoDevelop 2.2 Windows Vista 64

I'm trying to debug a newly written C# program in MonoDevelop and am getting
an error on the following line:

IPHostEntry LocalEntry = System.Net.Dns.GetHostEntry(""); 

Unknown identifier: Dns.  

I tried System.Net.Dns.GetHostEntry(""); just to see what happened and got
"Unknown member: Net"

I have 
using System.Net;
using System.Net.Sockets;
In the program so I'm a little confused why it can't resolve the problem. 
This runs fine in VS2008.  

Actually, when it hits that line, the yellow highlight line disappears and
the debugger never comes back.  I tried putting the line in the Immediate
window and that's where I saw the error so maybe it's just that I can't
specify a command like that in the Immediate window.  So, bottom line is:
does anyone know why the program is failing on that GetHostEntry line?

View this message in context: http://n4.nabble.com/Unknown-identifier-Dns-getting-local-IP-with-GetHostEntry-tp1566320p1566320.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.

More information about the Monodevelop-list mailing list