473,395 Members | 1,484 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

HttpWebRequest & Credentials

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
Nov 20 '05 #1
2 2078
Are you part of a domain or AD?
"Greg" <no****@nospam.com> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
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

Nov 20 '05 #2
"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
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?

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pmcg | last post by:
I would appreciate any help with the following, havn't found any answers for this in my research to date. I am trying to retreive a web page (a htm file intially) from a vdir on an intranet site...
0
by: Cozfer | last post by:
I am having a problem communicating with a remote server (on intranet) using the httpwebrequest object. We have used the object to communicate with other machines previously, but this time we must...
2
by: Steve Richter | last post by:
I have a page that uses simple HTTP GET to do an ISBN lookup via Amazon.com. The page works when I run it from //localhost. But I have moved it to my godaddy.com shared hoster site, and I get...
1
by: Dave Brown | last post by:
I am attempting to post to a url (https://FakeURL/logon.asp) using the HttpWebRequest class. The response for a succesful post will contain the html for the logon user's default page. We've...
8
by: Dave Brown | last post by:
I am attempting to post to a url (https://FakeURL/logon.asp) using the HttpWebRequest class. The response for a succesful post will contain the html for the logon user's default page. We've...
2
by: Greg | last post by:
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...
2
by: Greg | last post by:
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...
1
by: phil.jacobs | last post by:
Hi there, I am very stuck and have tried everything on this one! I am trying to get to an https website and cannot work out how to logon. When I log on manually, I have to enter username and...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
2
by: =?Utf-8?B?TGVuc3Rlcg==?= | last post by:
A C# (.NET 2) application which uses the System.Net.HttpWebRequest object to request a resource over HTTPS is failing following the installation of a new proxy server on our internal network with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.