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 August 29th, 2006, 05:47 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error: Chapter 3 (try it out) page 85

While trying to complete the "try it out" section begining on page 85 of chapter 3, I am continuing to get errors about a missing type or namespace in the file ThemeModule.cs

I find this curious since The try it out is about the sitemap control and I've not made any modifications to the supplied code other than those suggested in the "try it out" sections.

I am using the c# book, widows xp/Professional SQL2005 express and VWD express. Installed as per appendix b.

Any suggestions as to why I am getting this error?

Code and Errors below.

ERROR:
Error 1 The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?) C:\Websites\Begin\Chapter03\app_Code\ThemeModule.c s 19 9 C:\...\Chapter03


CODE:

using System;
using System.Web;
using System.Web.UI;

namespace Wrox.Web.GlobalEvents
{
  public class ThemeModule : IHttpModule
  {
    public void Init(HttpApplication context)
    {
      context.PreRequestHandlerExecute += new EventHandler(this.app_PreRequestHandlerExecute);
    }

    private void app_PreRequestHandlerExecute(object Sender, EventArgs E)
    {
      Page p = HttpContext.Current.Handler as Page;
      if (p != null)
      {
        ProfileCommon pb = (ProfileCommon)HttpContext.Current.Profile;
        p.Theme = pb.Theme;
      }
    }

    public void Dispose()
    {
    }
  }
}






Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 85 - Returning Response Data as a String bnicholas BOOK: Beginning Ajax with ASP.NET 0 January 15th, 2007 03:59 PM
Chapter 9 Try It Out Error, page 325 VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 March 22nd, 2006 02:22 PM
Chapter 10, Try It Out error, page 380 VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 February 13th, 2006 12:41 PM
error codes, Chapter 8, Page 218 JohnAlden BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 June 19th, 2004 11:02 AM
Chapter 15 page 662 error lance BOOK: Beginning ASP 3.0 0 February 12th, 2004 08:56 PM





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