Hi;
I am trying to test reading a html file over http. So in IIS I create a
virtual directory and then in my NTFS permissions I set that directory to
only allow read from Domain Users. (I also allow control by admin).
I then access it using:
XmlDocument xmlDoc = new XmlDocument();
XmlUrlResolver resolver = new XmlUrlResolver();
resolver.Credentials = new NetworkCredential(username, password);
xmlDoc.XmlResolver = resolver;
xmlDoc.Load(filename);
However, I have two problems. The first is if I access the file via IE
using: http://lumiere.windward.local/domain...st_no/test.xml I am not
prompted for a username/password. I believe that having the .windward.local
means that my credentials are not passed to the server so shouldn't I be
prompted.
Second, when I use the above code and pass a bad password, I am able to
access the file.
Obviously I am doing something wrong. Any ideas what?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm