Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 October 29th, 2004, 01:43 PM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default CH 5 Page 153

having error on this one

return (int)Wrox.WebModules.Accounts.ProcResultCodes.Acco untAlreadyOnFile;

ERROR:
C:\Wrox\ThePhile\Modules\Accounts\ACCOUNTSDATA\Use r.cs(71): The type or namespace name 'ProcResultCodes' does not exist in the class or namespace 'Wrox.WebModules.Accounts' (are you missing an assembly reference?)

I can't find the it in the code downloads. please help

 
Old November 1st, 2004, 01:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't have the source code with me, but this is an enumeration. Have you checked enum.cs?

Eric
 
Old November 1st, 2004, 02:43 PM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes i have the enum file in core...but still getting the error. i have the Accounts data project referenced to the core as well. namespaces are correct but no luck. any thoughts? thanks

 
Old November 2nd, 2004, 12:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I see this in file \ThePhile\Modules\core\enums.cs:

namespace Wrox.WebModules.Accounts
{
    public enum ProcResultCodes
    {
        AccountAlreadyOnFile = -100
    };

    public enum AccountsPermissions
    {
        CreateNewUsers = 100,
        DeleteUsers = 101,
        CreateRoles = 102,
        UpdateRoles = 103
    };
}
 
Old November 2nd, 2004, 09:57 AM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes i have the file and the functions there. i added that file in my project and still compiling error.



 
Old November 2nd, 2004, 02:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It must be a bad reference. Open up your references in the Solution Explorer and look for a bad one.

Eric
 
Old November 3rd, 2004, 10:54 AM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i thought that too but i checked and checked.

when i write Wrox.WebModules.Accounts.ProcResultCodes

after wrox. the list shows up and the accounts procresult and has permission shows up from the list also but compile error occurs.

I really appreciate you taking the time to help. thanks man.

 
Old November 3rd, 2004, 06:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's getting harder to track down. The DLL you referenced is providing the metadata that shows in intellisense. So it *IS* finding the right DLL, and the right class.

Maybe it's a version issue? Make a backup of the whole project first, then delete the DLL where this lives. Do a new build to create a new DLL and see what happens. You'll have to re-create the reference after it makes a new DLL.

Eric
 
Old November 4th, 2004, 08:38 AM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

wow that worked. awsome....respect to ya engler






Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch. 6 Try it out Page 187 mcauliff BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 4 November 4th, 2007 03:58 PM
Page 392; Ch 7; Ex 7_17 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 January 7th, 2007 03:24 PM
Page 975; Ch 19 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 July 31st, 2006 12:25 AM
Page 973; Ch 19 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 July 31st, 2006 12:17 AM
Error on Page 153? TKelley777 BOOK: ASP.NET Website Programming Problem-Design-Solution 2 December 22nd, 2003 10:02 PM





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