[MonoDevelop] Unknown identifier: Dns getting local IP with GetHostEntry
m.j.hutchinson at gmail.com
Tue Feb 23 13:56:11 EST 2010
On Tue, Feb 23, 2010 at 1:16 PM, Steve Ricketts <velocedge at hotmail.com> wrote:
> 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?
Do you have a reference to System.dll?
More information about the Monodevelop-list