TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
burak.koyuncu
NA
1
0
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;
Reply
Answers (
0
)
Menuicons
MDI