[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:31:47 EDT 2009


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

User gonzalo at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=500074#c9





--- Comment #9 from Gonzalo Paniagua Javier <gonzalo at novell.com>  2009-07-12 16:31:45 MDT ---
 Btw, I used this index.aspx:
<%@ Page %>
<%@ Import namespace="System.Net" %>
<html>
<script runat="Server">
    void Page_Load(object sender, EventArgs e)
    {
        lblText.Text = GetText();
    }

    private string GetText()
    {
        HttpWebRequest req =
(HttpWebRequest)WebRequest.Create("http://www.google.com");
        HttpWebResponse resp = (HttpWebResponse)req.GetResponse();

        string[] names = resp.Headers.AllKeys;

       string text = string.Format("{0,-20}{1}\n", "Name", "Value");

        foreach (string n in names)
            text += string.Format("{0,-20}{1}", n, resp.Headers[n]);

        resp.Close();

        return text;
    }
</script>
<body>
<asp:Label id="lblText" runat="server" />
</body>
</html>

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