XmlUrlResolver

Nov 3 2003 10:44 AM
The code below is to resolve the url by username and password and read the xml source from the this url. When I debug the code; I get an error like this: "401 error Unauthorized ...". Can you see where is the problem? Note: I am sure that username and password is true, because I tried from internet explorer. XmlTextReader reader = new XmlTextReader "http://testurl.com/01/02/myXML.xml"); NetworkCredential nc = new NetworkCredential ("username","password","testurl.com"); XmlUrlResolver resolver = new XmlUrlResolver(); resolver.Credentials = nc; reader.XmlResolver= resolver;