Wrox Programmer Forums
| 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 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 15th, 2003, 11:51 PM
Authorized User
 
Join Date: Jun 2003
Location: Bolingbrook, IL, USA.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Namespace

Hi all - truly awesome book, this. I am learning an incredible amount as I go along. I'm stuck, however, on this seemingly heinous problem. *Only* when visiting the "News" section of the example site, which I have adapted for my own site, I get this error:

"CS0234: The type or namespace name 'Business' does not exist in the class or namespace 'Racho.WebModules.News' (are you missing an assembly reference?)"

Okay, that sounds too obvious, right? Included a reference to the correct assembly (DLL, whatever) in the calling project? Check. Made sure that all "using" references are pointing to the correct namespace? Check. Made sure that all the namespaces involved actually do exist? Check. Made sure that the project being referenced is indeed called Racho.WebModules.News? Check. Racho.WebModules.News.Business really does exist in the correct project? Check. Everything compiles perfectly without error? Check.

So you see, it's an incredibly frustrating and mystifying problem! How else do I know that my namespaces are being read and understood correctly? In Visual Studio, when I type a dot after 'Racho.WebModules.News', the IDE automatically suggests "Business." So I think it's something else that's *quite* subtle that's simply not allowing Racho.WebModules.News.Business to be "seen" when the application is actually running. WHY?! Is there something else that needs to be set for compile time in the IDE? Is it possible for something to somehow "mask" a namespace so it can't be seen...

Please, any and all suggestions very much appreciated!
Regards,
Allen
__________________
-----
mencher cat, mencher cat. boo. cattydear. what a lovely!
 
Old June 16th, 2003, 09:54 AM
Authorized User
 
Join Date: Jun 2003
Location: Bolingbrook, IL, USA.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, I finally solved it, after being stuck for two wasted days... And as I suspected, it was a ridiculously simple and annoying problem. I simply copied the required assemblies into the site's main /bin directory, and all of a sudden the web application can find the correct namespace. I didn't even think of this, since at all times previously, the compiler automagically copied all the required DLLs into the correct places. In fact, now my question is WHY did it suddenly not do this for this particular assembly set? That's back burner stuff, though. I'll probably look into it in more detail after more of the site is put together.

Take care all, and see you around on this forum.
Allen
 
Old October 22nd, 2003, 11:31 AM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm having the same problem while trying to build the app. But I don't have the app built yet. Where are you getting the dll's and the pdb's from??

Thanks,

-JP
Quote:
quote:Originally posted by allenracho
 Hi all - truly awesome book, this. I am learning an incredible amount as I go along. I'm stuck, however, on this seemingly heinous problem. *Only* when visiting the "News" section of the example site, which I have adapted for my own site, I get this error:

"CS0234: The type or namespace name 'Business' does not exist in the class or namespace 'Racho.WebModules.News' (are you missing an assembly reference?)"

Okay, that sounds too obvious, right? Included a reference to the correct assembly (DLL, whatever) in the calling project? Check. Made sure that all "using" references are pointing to the correct namespace? Check. Made sure that all the namespaces involved actually do exist? Check. Made sure that the project being referenced is indeed called Racho.WebModules.News? Check. Racho.WebModules.News.Business really does exist in the correct project? Check. Everything compiles perfectly without error? Check.

So you see, it's an incredibly frustrating and mystifying problem! How else do I know that my namespaces are being read and understood correctly? In Visual Studio, when I type a dot after 'Racho.WebModules.News', the IDE automatically suggests "Business." So I think it's something else that's *quite* subtle that's simply not allowing Racho.WebModules.News.Business to be "seen" when the application is actually running. WHY?! Is there something else that needs to be set for compile time in the IDE? Is it possible for something to somehow "mask" a namespace so it can't be seen...

Please, any and all suggestions very much appreciated!
Regards,
Allen




Similar Threads
Thread Thread Starter Forum Replies Last Post
Namespace problem Harshal123 BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2 1 October 21st, 2008 06:35 AM
namespace problem gantait XSLT 5 February 19th, 2007 12:51 AM
namespace problem muki XSLT 1 November 13th, 2005 12:25 PM
Namespace Problem JRMotz BOOK: ASP.NET Website Programming Problem-Design-Solution 1 November 12th, 2005 03:18 PM
namespace problem marclena XSLT 1 February 12th, 2004 03:48 PM





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