Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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 June 14th, 2009, 09:26 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Stuck in chapter 4

Hi all,
Thanks to Vince for writing this book and showing how all those c# concepts you read about in the beginning books work together. I worked through the solutions for chaps 1-3 and eventualy got everything to compile, but now
I'm stuck in chap. 4. As the compiler errors suggest, I checked to see if perhaps I left out a using directive or a reference in the solution, but everything seems to be there. I've decided to join the forum because I'm
stuck now for two days. I'm following the code exactly as in the book except for these changes:
rename solution to threeTierWebApp
changed PaidTimeOffUI to UI_Tier
changed V2.PaidTimeOfBLL to BL_Tier
changed V2.PaidTimeofDAL to DA_Tier
Here are the errors generated when I try to compile the entire solution, if anybody sees whats wrong please respond.

Description Project
Error 1 The name 'ConfigurationManager' does not exist in the current context \threeTierWebApp\DA_Tier\Framework\DBHelper.cs DA_Tier
Error 2 Metadata file \threeTierWebApp\DA_Tier\bin\Debug\DA_Tier.dll' could not be found BL_Tier
Error 3 Metadata file \threeTierWebApp\BL_Tier\bin\Debug\BL_Tier.dll' could not be found FrameworkContols
Error 4 The type or namespace name 'ENTBaseEO' could not be found (are you missing a using directive or an assembly reference?) \threeTierWebApp\UI_Tier\App_Code\BaseEditPage.cs http://localhost/UI_Tier/
Error 5 BL_Tier.Framework.ENTUserAccountEO' is inaccessible due to its protection level \threeTierWebApp\UI_Tier\App_Code\BasePage.cs http://localhost/UI_Tier/
Error 6 Inconsistent accessibility: property type 'BL_Tier.Framework.ENTUserAccountEO' is less accessible than property 'BasePage.CurrentUser' \threeTierWebApp\UI_Tier\App_Code\BasePage.cs http://localhost/UI_Tier/
Error 7 The type or namespace name 'ENTMenuItemBOList' could not be found (are you missing a using directive or an assembly reference?) \threeTierWebApp\UI_Tier\App_Code\Globals.cs http://localhost/UI_Tier/
Error 8 The type or namespace name 'ENTUserAccountEOList' could not be found (are you missing a using directive or an assembly reference?) \threeTierWebApp\UI_Tier\App_Code\Globals.cs http://localhost/UI_Tier/
 
Old June 15th, 2009, 04:14 PM
Authorized User
 
Join Date: Jun 2009
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Default

The configuration manager error will occur if you don't add a reference to it in your project. You have to add it by right-clicking on the DAL project, not just adding a using directive in the DB_Helper.cs file (I had this issue last night).

All of your EO or EOList will need using directives pointing to the V2.PaidTimeOffBLL and V2.PaidTimeOffBLL.Framework sections (or whatever you called your BLL)

your metadata errors are caused by the BLL not being able to compile due to the above errors.
The Following User Says Thank You to GenXisT For This Useful Post:
louisvillegeorge (June 17th, 2009)
 
Old June 17th, 2009, 10:54 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Thank You Thank You

YES !!!!! THAT WAS IT !!!!!! THANK YOU! THANK YOU! Just like you said - Once I included the reference to System.configuration within the DA_Tier project it was able to compiled and generate the DA_Tier.dll that the BL_Tier was looking for which in turn allowed that project to generate the BL_Tier.dll that FrameworkControls was looking for! Thank You GenXisT
Now I have another problem similar to the first, but I'll start a new thread.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help PHP Rookie Stuck Chapter 1! shinigami BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 3 November 14th, 2009 12:45 AM
Stuck on the first chapter flashster BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 September 1st, 2006 03:40 AM
Stuck on Chapter 2, pg 47-48 Clifton Thompson Beginning PHP 0 January 21st, 2006 08:29 PM
I'm stuck! budman Classic ASP Databases 2 November 3rd, 2003 12:52 AM





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