Access denied error message 401.2

Discussion in 'ASP.NET' started by anoopbitsmart, Jan 30, 2008.

  1. anoopbitsmart

    anoopbitsmart New Member

    Joined:
    Jan 30, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I want my .Net app to be accessible to a group only.For this I entered the following in web.config

    <authorization>
    <allow roles="Group name" />

    <deny users="*" />
    </authorization>

    and want all users who are not member of this group redirected to customised page NoAccess.htm

    <customErrors mode="On" defaultRedirect="Error.aspx" >
    <error statusCode="401" redirect="NoAccess.htm" />
    </customErrors>


    I am using Windows authetication,have added the group in the local users and groups.

    When I run the set up it prompts for login credentials which when entered gives error message 401.2 Access is denied

    Please help.


    Regards,
    Anoop Srivastava
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    You have posted the thread in the Introduction section but can you clarify what language you are using?
     
  3. anoopbitsmart

    anoopbitsmart New Member

    Joined:
    Jan 30, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I am using C# with ASP.Net as frontend(.NET 1.1)
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Moved to ASP / ASP.NET forum for better responses.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice