Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible error ?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00906280
Message ID:
00906702
Views:
15
Simon

>Well I've fixed it, although I'm not sure how!!
>
>The default namespace for my Business Object Project is:
>WS.SAFISNET.Business
>
>If I take out this line:
>Namespace WS.SAFISNET.Main.Business (and End Namespace)
>
>from the business object definition program, it all works.

Namespaces work a bit differently in VB .NET than C#. In VB .NET, the namespace you specify at the project level is a "root namespace". This means that any namespace you specify in a class definition gets appended as a suffix to this namespace.

For example, if you have WS.SAFISNET.Business as your project's root namespace, and you have the following namespace in your business object source code:
Namespace WS.SAFISNET.Main.Business
Then the full name of your business object is:
WS.SAFISNET.Main.Business.WS.SAFISNET.Main.Business
Which I'm sure isn't what you want! Removing the namespace from the source code as you did, gave the business object the correct name:
WS.SAFISNET.Main.Business
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform