Ch11 Exerc 3 Appendix A problem
On p.642 Appendix A, Exercise 3 Solution specifies that the Web.config file in the Admin folder should be changed to include the Administrator role. Accordingly, I have changed mine as shown below.
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<authorization>
<deny users="*" />
</authorization>
</system.web>
<location path="UpdateScore.aspx">
<system.web>
<authorization>
<allow roles="Reporter,Administrator"/>
</authorization>
</system.web>
</location>
...
As per following the Ch 11 text, I earlier created a user named Admin and gave it a role of Administrator,only. Everything I did in the regular chapter worked fine. Its just this Exercise 3.
Trying the exercise: After I successfully logon using Admin, and I click menu item Administration, the sub menu that appears does not show UpdateScore, as it should.
Rather, it shows Edit Views, Shop, and User Admin.
I know that I can add the Admin user to the Reporters role and have successfully done so.
However the book implies (see text above) that "The alternative is to enable access to the UpdateScore.aspx page on the site to all site Administrators by making the following change to the Web.config file within the root of the Admin folder."
I'm probably doing something wrong or forgetting something but I can't find out what.
Help please anyone.
VictorVictor
|