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.WebR equest.Create(u rl);
wr.Credentials = CredentialCache .DefaultCredent ials;
HttpWebResponse resp = (System.Net.Htt pWebResponse)wr .GetResponse();
I got "System.Net.Web Exception: 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.WebR equest.Create(u rl);
wr.Credentials = CredentialCache .DefaultCredent ials;
HttpWebResponse resp = (System.Net.Htt pWebResponse)wr .GetResponse();
I got "System.Net.Web Exception: The remote server returned an error: (401)
Unauthorized." error, Any idea why?
Thanks very much!
John
Comment