Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 16th, 2006, 03:41 PM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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







Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using mail() from Ch11 nodster Beginning PHP 2 May 14th, 2007 08:44 AM
code in CH11 not work in FireFox din BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 2 January 18th, 2006 09:21 PM
Please tell about Beginning Visual C# exerc answer wayne_tai C# 3 November 2nd, 2004 01:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.