ASP.NET: 401 (Unauthorized) error

S

sprungli

My distributed app has the following cofiguration:



My machine is not networked and I use localhost on IIS as a Web container.
On localhost I have an ASP.NET app hosting a remote object. My goal is to
test authenticating, then authorizing/denying users based on their Windows
accounts (format: Domain\User). So in the ASP.NET app Web.config I have:



<authentication mode="Windows" />

<identity impersonate="true" />

(and authorization is set to <allow users="*" /> by default - in
Machine.config)



In the ASP.NET app's virtual folder in IIS I disable Anonymous Access and
check the Integrated Windows Authentication box.



For the physical folder of the ASP.NET app I give Full Control rights to the
user (myself=Admin rights) currently logged on the domain (the local
machine).



With this configuration I expect to be properly authorized by IIS and
ASP.NET in order to connect to the remote object. Instead I get a 401
(Unauthorized) runtime error.



I think I read somewhere that testing ASP.NET authentication and
authorization on the local domain doesn't work. Unfortunately, I do not have
a network domain available, so I wonder if this could be the reason for the
error. Or maybe I am missing something elsewhere?



Thanks for your suggestions.
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top