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 July 22nd, 2009, 04:48 AM
Authorized User
 
Join Date: Feb 2005
Posts: 47
Thanks: 2
Thanked 0 Times in 0 Posts
Default Problem with Chap04 StringHelpers

Hi all,

I am having a problem with Chapter 4. I typed in the code exactly as the book says but in my BasePage class I get an error that StringHelpers does not exist in the current context. I added the StringHelpers class and saved but still no joy. Am I missing a reference and if so how do I reference that class properly? I get a feeling that is the problem but I don't know how to fix it.

Thanks
Chris
 
Old October 19th, 2009, 01:45 PM
Registered User
 
Join Date: Oct 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Me too!

Join the club! Nobody's even looking at this? I found problems with the books code early on in chapter 2 and its was an on-going thing. It was a shame, I think this could have been a winnder if it were'nt for what seem like obvious oversights. If you resolved it, send back the solution to it bro!
 
Old October 26th, 2009, 10:27 PM
Wrox Author
 
Join Date: Jan 2009
Posts: 73
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Hi Chris. are both classes in the App_Code folder in your project? What version of VS are you using? Are you getting any compile errors in the StringHelpers class?
 
Old October 28th, 2009, 09:00 AM
Authorized User
 
Join Date: Feb 2005
Posts: 47
Thanks: 2
Thanked 0 Times in 0 Posts
Default Issue with StringHelpers

I am using VS 2008 Pro. Both files are in the App_Code folder. Any assistance would be greatly appreciated.
 
Old October 29th, 2009, 11:05 AM
Authorized User
 
Join Date: Mar 2009
Posts: 79
Thanks: 4
Thanked 4 Times in 4 Posts
Default

This is really a good book and framework. Remember this is the first iteration of the book and if Vince decides to expand it I know the second book and any others that follow will be even better.

To overcome the oversights I took the approach of reverse engineering as a method of learning the framework. Basically I downloaded all of the files built it, got it running and started reading the book to understand how the framework was built. From there the book has become an excellent reference source and I have built 2 working applications from the framework that Vince provided. That is just me and how I learn though.

The reason I went this path is because the end result is going to be the code that you are manually putting in now, and the framework is quite a monster, I honestly dont think you will get much from the manual entry of the code. I do think you will get more from the use of the framework and understanding how it works once you start applying it to your real world solutions. Give it a try and I can assist you where I can.

DJ
 
Old November 10th, 2009, 08:48 PM
Wrox Author
 
Join Date: Jan 2009
Posts: 73
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Can you post the project so I can take a look.
 
Old November 30th, 2009, 05:12 AM
Registered User
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by kuznickic View Post
Hi all,

I am having a problem with Chapter 4. I typed in the code exactly as the book says but in my BasePage class I get an error that StringHelpers does not exist in the current context. I added the StringHelpers class and saved but still no joy. Am I missing a reference and if so how do I reference that class properly? I get a feeling that is the problem but I don't know how to fix it.

Thanks
Chris
I think it has something to do with the way the Web Application project type handles the App_Code folder.

1. Create a folder to store your code in the web project (I just called mine "code") and move the stuff from your app_code folder into this new folder.

2. Right click the classes, select Properties, and change the Build Action to "Compile".





Similar Threads
Thread Thread Starter Forum Replies Last Post
Begin.Php5,,Chap04, page no.158,,ex. dynamic.php sandeepgreaternoida BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 November 5th, 2013 12:13 PM
StringHelpers in Chapter 8 gives a build error tdewey BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 2 May 2nd, 2009 07:54 PM





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