Error message 401.2 Access denied

anoopbitsmart's Avatar, Join Date: Jan 2008
Newbie Member
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
Language C# ASP.NET as frontend
Please help.


Regards,
Anoop Srivastava
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Duplicate of Access denied error message 401.2. Thread closed.