J
John Lee
Hi,
I have a virtual directory configured as "integrated windows authentication"
and "anonymous acccess" is turned off. I can use IE to acccess that page but
when I try to access the page using
HttpWebRequest wr = (HttpWebRequest) System.Net.WebRequest.Create(url);
wr.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse resp = (System.Net.HttpWebResponse)wr.GetResponse();
I got "System.Net.WebException: The remote server returned an error: (401)
Unauthorized." error, Any idea why?
Thanks very much!
John
I have a virtual directory configured as "integrated windows authentication"
and "anonymous acccess" is turned off. I can use IE to acccess that page but
when I try to access the page using
HttpWebRequest wr = (HttpWebRequest) System.Net.WebRequest.Create(url);
wr.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse resp = (System.Net.HttpWebResponse)wr.GetResponse();
I got "System.Net.WebException: The remote server returned an error: (401)
Unauthorized." error, Any idea why?
Thanks very much!
John