HttpWebRequest & Credentials

G

Greg

I've been reading a lot of other posts and trying a bunch of things but just
cannot get this to work. I'm hoping someone can help.

Here's the situation. I have a test folder which only Administrator has
access to. Inside it has a web page. In IIS (Windows 2003), I have
"Integrated Windows authentication" and "Basic authentication" check marked
for the folder -- nothing else.

I can access the folder with IE6 without being prompted for a username and
password (I'm logged in as Administrator). When I attempt to download the
page with the HttpWebRequest I get the error "401 Unauthorized". When I
specify credentials as: Request.Credentials = New
NetworkCredential("Administrator", "", "localhost") I also get "401
Unauthorized".

Does anyone have any idea what the problem might be?

BTW: This is a normal app run under the Administrator account.

Thanks
 
G

Greg

CJ Taylor said:
Are you part of a domain or AD?

This is a single computer that's not networked to anything. No AD. Is that
what the domain portion is referring to?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top