Hi Imar,
While trying to setup roles, as per chapter 15, I type:
http://localhost:4560/management/Default.aspx
in my browser address bar and after hitting the Enter key I get taken to:
http://localhost:4560/login.aspx?Ret...2fDefault.aspx
The pages displays "You are already logged in", and I cannot get into the management page. I obviously did something wrong because I have done this with another project and it worked OK. Can not seem to find what I did wrong.
My MasterPages.master has this code:
Code:
<div id="Sidebar">
<asp:LoginView ID="LoginView1" runat="server">
<RoleGroups>
<asp:RoleGroup Roles="Managers">
<ContentTemplate>
<asp:HyperLink ID="HyperLink1"
runat="server" NavigateUrl= "~/Management/Default.aspx">
Manager
</asp:HyperLink>
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
<LoggedInTemplate>
<asp:LoginName ID="LoginName1" runat="server" />
</LoggedInTemplate>
</asp:LoginView>
</div>
and at the bottom of the web.config file is:
Code:
<location path="Management">
<system.web>
<authorization>
<allow roles="Manager" />
<deny users="*" />
</authorization>
</system.web>
</location>
</configuration>
The Default.aspx does exist under the Management folder and this is its contents:
Code:
<h1>Home-Remake Management section</h1>
<p>
Welcome to the management section of this web site. Please choose an item from the menu at the left to continue.
</p>
Also I have used the WSAT to create the user Manager and added it to the Managers role.
Any ideas?
Fred