L
Li Pang
Hi,
I put a xml file in a web site "http://localhost/XML/default.xml", and I try
to open it from the following codes:
Dim doc As XmlDocument
doc = New XmlDocument()
doc.Load("http://localhost/XML/default.xml")
then I got an error: "(401) Unauthorized"
When I enabled anonymous access in "http://localhost/XML" site, then the
file can be opened successfully.
I'd like to know how to set credentials programmatically for this site and
keeping anonymous access disabled.
Thanks in advance
I put a xml file in a web site "http://localhost/XML/default.xml", and I try
to open it from the following codes:
Dim doc As XmlDocument
doc = New XmlDocument()
doc.Load("http://localhost/XML/default.xml")
then I got an error: "(401) Unauthorized"
When I enabled anonymous access in "http://localhost/XML" site, then the
file can be opened successfully.
I'd like to know how to set credentials programmatically for this site and
keeping anonymous access disabled.
Thanks in advance