Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | 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 Display Modes
  #1 (permalink)  
Old December 13th, 2006, 08:40 PM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with Chapter 3

First off, I know this book is not meant to hold hands and explain everything. However, I am having real difficulty understanding chapter 3, and keep getting errors.

I see from the code download that there are .dll files and SQL data files and .pdb files and the separate Custom Events folder itself, but I have no idea how to get any of these files into my project, nor how to link the custom events.

Perhaps if someone could do a little hand holding, because from browsing the forum, it seems that chapter 3 has some of the highest levels of questions.

Thanks all.

  #2 (permalink)  
Old December 14th, 2006, 01:27 AM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

The reason I created the chapter by chapter code was to help those like you. Have you gone to the code downloads and looked it over?

Also, try to be a little more specific about your problem. It's hard to narrow down when you just say Chapter 3.



  #3 (permalink)  
Old December 14th, 2006, 01:44 AM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have downloaded the chapter code, but I don't know how to get to that point with the .dll files and the rest.

Perhaps I'm just missing something.

  #4 (permalink)  
Old December 14th, 2006, 02:31 AM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can you be a little more specific? What errors are you getting? Don't post them all, only the relevent ones.


  #5 (permalink)  
Old December 14th, 2006, 02:52 AM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

"Error 9 Could not load file or assembly 'MB.AviationDownunder.CustomEvents' or one of its dependencies. The system cannot find the file specified. D:\Aviation Downunder\web.config 64
"
Note I have copied everything exactly from the chapter download, only changing names to suit.

My current directory structure (if that helps) is:

Main - contact.aspx
       - contact.aspx.cs
     - default.aspx
       - default.aspx.cs
     - template.master
       - template.master.cs
     - web.xml

App_Code - BLL - BizObject.cs
         - DAL - DataAccess.cs
         - BasePage.cs
         - ConfigSection.cs
         - Globals.cs
         - Helpers.cs

AD_CustomEvents - customevents.cs

There's more, but they relate to the theme's which arn't covered in this chapter.

I hope that's enough info for you.

Cheers

  #6 (permalink)  
Old December 15th, 2006, 07:10 PM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyone?

  #7 (permalink)  
Old December 15th, 2006, 10:19 PM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

Sorry Steve.

Your biggest problem is that web.config has been renamed web.xml. Why is that?

Second, If you haven't already done so, you neeed to add a project to handle the events. This is shown in the chapter by chapter code and I even left the project properties page open so that it can be seen when you first open the solution.


  #8 (permalink)  
Old December 16th, 2006, 05:48 AM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is actually named web.config, I was just reading from Windows Explorer where it showed up as XML.

I never actually noticed the solution thing before, that'll help.

Couple more q's about it though, how do you get the DLL, PDB and MDF files and how do you add the Custom Events project so it's part of the overall project?

I also get an error when I try to open to solution: "The application for project "..\TBH_CustomEvents.csproj" not installed."

How do I fix this?

Thanks for your patience.:)
  #9 (permalink)  
Old December 16th, 2006, 01:13 PM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

The DLL (Dynamic Link Library) and PDB (Debug) files are created when you compile the project for the first time. You can add it to the Web project by right clicking it in the solution explorer and selecting "Add Reference". Now select the Projects tab and select your events project. The DLL and PDB files will be copied to the BIN folder of your web project and if you have to make any changes to the events project the files will be automatically updated.

There are a number of ways of creating the MDF file. The easiest way is use "Website/ASP.NET Configuration". Select the security tab and use the "Security setup wizard". The drawback to this is that if you create any users those users are coded for maximum security and the provider you'll be using codes for a slightly less secure method. What does that mean? Simply that the password will be unretrievable.



  #10 (permalink)  
Old January 17th, 2007, 08:02 PM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am wondering if, like me, Steve is using Visual Web Developer 2005.
That would explain why he's having trouble with the Custom Events, since Visual Web Developer 2005 doesn't allow you to compile your code into assemblies.
I was hoping to use only Visual Web Developer 2005 to work through the book, but it looks like I may have to shell out for Visual Studio 2005, unless there's anonther way

I do not understand why Custom Events should have to be compled anyway - this seems like a workaround for a flaw in ASP.NET. Can anyone shed some light on that?
 


Thread Tools
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
Problems with Example in Chapter 6 elly BOOK: Professional Crystal Reports for VS.NET 0 March 31st, 2008 03:39 PM
Yet more Chapter 4 problems Putter BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 March 28th, 2007 11:37 PM



All times are GMT -4. The time now is 12:16 AM.


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