[Mono-bugs] [Bug 500074] XmlDocument.Load() fails with System.Net.WebException: Error: NameResolutionFailure

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jul 12 18:26:00 EDT 2009


User robertj at gmx.net added comment

Robert Jordan <robertj at gmx.net> changed:

           What    |Removed                     |Added
                 CC|                            |robertj at gmx.net

--- Comment #7 from Robert Jordan <robertj at gmx.net>  2009-07-12 16:25:59 MDT ---
Can your reproduce the issue with this code? Compile it with gmcs.

using System;
using System.Net;

class Test : MarshalByRefObject
    static void Main ()
        AppDomain d = AppDomain.CreateDomain ("FooBar");

        Type type = typeof (Test);
        Test test =
            (Test) d.CreateInstanceAndUnwrap (type.Assembly.FullName,
        test.RunTest ();

    public void RunTest ()
        HttpWebRequest req =
            (HttpWebRequest) WebRequest.Create ("http://www.google.com");

        using (HttpWebResponse resp = (HttpWebResponse) req.GetResponse()) {
            foreach (string n in resp.Headers.AllKeys)
                Console.WriteLine ("{0,-20}{1}", n, resp.Headers[n]);

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