[Mono-bugs] [Bug 500074] New: XmlDocument.Load() fails with System.Net.WebException: Error: NameResolutionFailure
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri May 1 11:25:30 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=500074
Summary: XmlDocument.Load() fails with System.Net.WebException:
Error: NameResolutionFailure
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: i686
OS/Version: Ubuntu
Status: NEW
Severity: Major
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: pete.grace at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=289457)
--> (http://bugzilla.novell.com/attachment.cgi?id=289457)
source code snippet to cause error
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.10)
Gecko/2009042316 Firefox/3.0.10
When running a test program to load an XmlDocument from the web, a WebException
is generated for NameResolutionFailure. The host in question does exist, as
shown below in output.
Reproducible: Always
Steps to Reproduce:
1. Instantiate XmlDocument
2. Load document from web with XmlDocument.Load("url");
Actual Results:
loaddoc will be = http://www.google.com
Unhandled Exception: System.Net.WebException: Error: NameResolutionFailure
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult)
[0x00000]
at System.Net.HttpWebRequest.GetResponse () [0x00000]
at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String
role, System.Type ofObjectToReturn) [0x00000]
at Mono.Xml2.XmlTextReader.GetStreamFromUrl (System.String url,
System.String& absoluteUriString) [0x00000]
at Mono.Xml2.XmlTextReader..ctor (System.String url, System.Xml.XmlNameTable
nt) [0x00000]
at System.Xml.XmlTextReader..ctor (System.String url, System.Xml.XmlNameTable
nt) [0x00000]
at System.Xml.XmlDocument.Load (System.String filename) [0x00000]
at XmlFail.LookupWillFail.Main (System.String[] args) [0x00000]
Expected Results:
Should not have thrown an exception.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list