ASP.NET: 401 (Unauthorized) error

From: sprungli (sprungli1_at_netscape.net)
Date: 09/22/04

  • Next message: Ken Schaefer: "Re: Kerberos not being used, only NTLM - Login failed for user '(null)'"
    Date: Wed, 22 Sep 2004 17:48:45 -0400
    
    

    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.


  • Next message: Ken Schaefer: "Re: Kerberos not being used, only NTLM - Login failed for user '(null)'"

    Relevant Pages

    • Re: ASP.net client using Local .dll instead of remote
      ... When the client is an ASP.NET app, ... seperate config file. ... > I have a relatively simple remote object hosted in IIS on a separate ... > but the web app always runs the local copy of the .dll file and never ...
      (microsoft.public.dotnet.framework.remoting)
    • Re: Where to put remote activator in the client?
      ... > I'm developing a Remoting project and after reading and testing a LOT with ... > Now, in my project, when the app starts... ... > to the remote object ... > TcpClientChannel ch = new TcpClientChannel; ...
      (microsoft.public.dotnet.framework.remoting)
    • Where to put remote activator in the client?
      ... I'm developing a Remoting project and after reading and testing a LOT with ... Now, in my project, when the app starts... ... to the remote object that ... TcpClientChannel ch = new TcpClientChannel; ...
      (microsoft.public.dotnet.framework.remoting)
    • Re: Remote object sending from server to client to local client
      ... remote object and has a single TCP channel open. ... I also have a client (clt) that retrieves that object from a TCP ... I tried returning the srv remote object from a method call on clt ... app invokes a method on clt and this method returns the srv ...
      (microsoft.public.dotnet.framework.remoting)