Click here to Skip to main content
15,896,502 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i am executing the admin page it is asking for username and password.
from where i get the username
i have provided but it not logged in.

C#
<location path="admin.aspx">
    <system.web>
      <authorization>
        <allow roles="admins"/>

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

mynew user account name is admin2
pwd is 1234
Posted
Comments
Ed Nutting 19-Apr-12 3:45am    
In Windows Authentication, denial usually overrides any allows. With this in mind your global deny of everyone will deny admin and override your allow admin. So perhaps this needs to change? Try denoting the deny * setting and see if it works. For anyone reading this, if I am wrong please correct me but this is my understanding of Windows Authentication.

Hope this helps,
Ed

1 solution

Hi,

Go through this article:
Windows Authentication[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900