[Mono-bugs] [Bug 456723] System.Net.GetHostByName throwing SocketException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 14 21:20:56 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=456723

http://bugzilla.novell.com/show_bug.cgi?id=456723#c7


--- Comment #7 from Lex Li <lextudio at gmail.com> 2010-04-15 01:20:55 UTC ---
Gonzalo,

Thanks for testing those methods. What about 

using System.Net;

namespace DnsTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Dns.GetHostEntry(string.Empty);
        }
    }
}

It still fails on Mono 2.6.3/Windows 7 here with exact the same exception,

Unhandled Exception: System.Net.Sockets.SocketException: No such host is known.

  at System.Net.Dns.GetHostByName (System.String hostName) [0x00038] in
C:\cygwi
n\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\System\System.Net\Dns.cs:381
  at System.Net.Dns.GetHostEntry (System.String hostNameOrAddress) [0x00061] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\System\System.Net\Dns.c
s:306
  at DnsTest.Program.Main (System.String[] args) [0x00001] in
c:\users\lexli\doc
uments\visual studio 2010\Projects\DnsTest\DnsTest\Program.cs:12
Press any key to continue . . .

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list