Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 30th, 2006, 09:36 AM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 3, cannot build due to health monitoring

Ok guys,

I am at the end of Chapter 3, where the 'Configuring Health Monitoring System'. Here we have to create an additional project to put the 'customevent'. I did that and entered the code as in the book. But now it won't compile!!!!

It shows that it several namespaces does not recognize, like using System.Web.Security; -> "Security"
using System.Web.UI; -> "UI"
using System.Web.UI.WebControls; -> "UI"
using System.Web.UI.WebControls.WebParts; -> "UI"
using System.Web.UI.HtmlControls; -> "UI"
using System.Web.Management; -> "Management"

I don't know how you guys managed it, but I could use some help from the community.
  #2 (permalink)  
Old October 30th, 2006, 11:41 AM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I managed to compile the CustomEvents project, it was missing the System.Web reference. BUT!!!!! On my web project, it cannot build or compile due to a section on the "Web.Config".

<eventMappings>
            <add name="TBH Events" type="MB.TheBeerHouse.WebCustomEvent, MB.TheBeerHouse.CustomEvents" />
</eventMappings>

This is the health monitoring section, it says that 'cannot find specified file'. Can somebody be kind enough to shine me the path on this????

  #3 (permalink)  
Old October 30th, 2006, 02:00 PM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

I've written about this before.

If you use ILDASM you'll find that "MB.TheBeerHouse.CustomEvents" compiles to "MB.MB.TheBeerHouse.CustomeEvents". You can eliminate the first "MB." by removing the default namespace from the Custom Events project property.

  #4 (permalink)  
Old October 30th, 2006, 03:10 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

MythicalMe,

I apologize on my ignorance, but how do I know if I am using ILDASM or is there a way to switch ?

  #5 (permalink)  
Old October 30th, 2006, 03:15 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

MythicalMe,

I did remove "MB" from the namespace of the CustomEvents.cs and still get the error 'Could not load file or assembly 'MB.TheBeerHouse.CustomEvents'.

I did fix that issue, I had to double click on the properties of the CustomEvents and set the namespaces. BUT now it still won't compile, because it cannot find reference to 'TheBeerHouseSection' on the Globals.cs of the web project. I did all the stuff like on the book, so I don't see where to point the compiler to find 'TheBeerHouseSection'
  #6 (permalink)  
Old February 25th, 2007, 12:02 AM
Registered User
 
Join Date: Feb 2007
Location: , , Australia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to pleb
Default

Hi stzd8,

I just had this problem. I resolved it by doing the following.

1. Scratch head until sore.
2. Open the properties window of the custom events project
3. Change the assembly name to "MB.TheBeerHouse.CustomEvents"
4. Change the Default namespace to "MB.TheBeerHouse"
5. Recompile the events project
6. Recompile the web project.

  #7 (permalink)  
Old February 27th, 2007, 05:55 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks 'Pleb' - spot on advice that I needed.

I'd just figured out what the problem was, but was going to leave my bin file as "TBH_CustomEvents.dll" as I didn't know how to generate the name I wanted. I could see it should be this from the downloaded chapters.
Some of us are mortal.

  #8 (permalink)  
Old February 27th, 2007, 07:14 PM
Registered User
 
Join Date: Feb 2007
Location: , , Australia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to pleb
Default

Thanks phealy02, it's good to see my post has helped someone. :D

  #9 (permalink)  
Old May 11th, 2007, 02:23 PM
Authorized User
 
Join Date: May 2007
Location: Oslo, , Norway.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you guys :)

I had the same problem and I was dying with this .dll CustomEvents(Chapter 3) over many many days, but now it's solved with your help.

I am still looking for the best way to read this book, as the database is not so much covered in the book.

I am a newbie to C# that is why I find this book very hard

  #10 (permalink)  
Old May 11th, 2007, 04:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is not a book for newbies. This doesn't cover every detailed mouse click and keystroke, and so it assumes a certain amount of familiarity with .NET, C#, and SQL.

You should always get the code download and study that as you read sections in the book. This code download includes a complete database.

But you might not understand the book very well until you get more familiar with .NET. This is a complex subject, I'm afraid. First you must understand the language and the platform. Then you have to understand the basics of ASP.NET web development and how to build simple web pages. Then, lastly, you need to tackle architecture and overall website design and implementation (which is the subject of this book).

Eric

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing a Health Monitoring UI Lee Dumond BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 22nd, 2008 06:26 AM
Health Monitoring System vic02 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 February 7th, 2007 11:52 AM
Health Monitoring System spardoe BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 6 October 31st, 2006 10:28 PM
Need Help with Health Monitoring System ryandoah BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 October 19th, 2006 08:11 AM
Health Monitoring System - Chapter 3 Page 109 - 11 Laurie S. Stapleton BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 31st, 2006 12:13 PM



All times are GMT -4. The time now is 04:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.