[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:57:25 EDT 2009


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

User novell at pasichnyk.net added comment
http://bugzilla.novell.com/show_bug.cgi?id=500074#c10





--- Comment #10 from Jesse Pasichnyk <novell at pasichnyk.net>  2009-07-12 16:57:15 MDT ---
(In reply to comment #7)
> 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,
> type.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]);
>         }
>     }
> }

Robert, I just tried your sample and it worked as expected.

Output:

Cache-Control       private, max-age=0
Date                Sun, 12 Jul 2009 22:56:35 GMT
Expires             -1
Content-Type        text/html; charset=ISO-8859-1
Set-Cookie         
PREF=ID=59b9d8a7a77512a6:TM=1247439395:LM=1247439395:S=5AAOv4lYy7MYomZN;
expires=Tue, 12-Jul-2011 22:56:35 GMT; path=/; domain=.google.com
Server              gws
Transfer-Encoding   chunked

-- 
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