Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP.NET (http://www.go4expert.com/forums/asp-net/)
-   -   Access denied error message 401.2 (http://www.go4expert.com/forums/access-denied-error-message-4012-t8555/)

anoopbitsmart 30Jan2008 21:57

Access denied error message 401.2
 
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

shabbir 30Jan2008 22:39

Re: Access denied error message 401.2
 
You have posted the thread in the Introduction section but can you clarify what language you are using?

anoopbitsmart 31Jan2008 00:48

Re: Access denied error message 401.2
 
Hi,

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

shabbir 31Jan2008 08:15

Re: Access denied error message 401.2
 
Moved to ASP / ASP.NET forum for better responses.


All times are GMT +5.5. The time now is 02:04.