HttpWebRequest & Authentication

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", "mypass", "mymachinename") I also get
"401 Unauthorized".

If I disable "Integrated Windows authentication" it works, but I need that
enabled for other things. This is where my problem is.

Does anyone have any idea what the problem might be?

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

Thanks
 
M

MadCrazyNewbie

Is this on a Active Directory, Shared win NT network?

Is this a stand alone server / Member Server / DC?

More Details would be a good Idea?

MCN
 
G

Greg

MadCrazyNewbie said:
Is this on a Active Directory, Shared win NT network?

Is this a stand alone server / Member Server / DC?

More Details would be a good Idea?

MCN

Thanks for the reply. It's just a single Windows 2003 system. It's not on
a network and AD is not installed.
 

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