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 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 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 29th, 2004, 01:43 PM
Authorized User
 
Join Date: Oct 2004
Location: , , .
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

  #2 (permalink)  
Old November 1st, 2004, 01:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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
  #3 (permalink)  
Old November 1st, 2004, 02:43 PM
Authorized User
 
Join Date: Oct 2004
Location: , , .
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

  #4 (permalink)  
Old November 2nd, 2004, 12:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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
    };
}
  #5 (permalink)  
Old November 2nd, 2004, 09:57 AM
Authorized User
 
Join Date: Oct 2004
Location: , , .
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.



  #6 (permalink)  
Old November 2nd, 2004, 02:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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
  #7 (permalink)  
Old November 3rd, 2004, 10:54 AM
Authorized User
 
Join Date: Oct 2004
Location: , , .
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.

  #8 (permalink)  
Old November 3rd, 2004, 06:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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
  #9 (permalink)  
Old November 4th, 2004, 08:38 AM
Authorized User
 
Join Date: Oct 2004
Location: , , .
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 


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
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



All times are GMT -4. The time now is 02:44 PM.


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