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

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top