Solved

NameSpace Error - class is not defined ?

Posted on 2004-09-20
5
283 Views
Last Modified: 2007-12-19
Hi all,

Ive created my own Collection called ClientsCollection (inheriting ArrayList)  under the ASPNET.StarterKit.TimeTracker.BusinessLogicLayer namespace , ie I added the namespace ASPNET.StarterKit.TimeTracker.BusinessLogicLayer at the top of the page.

I also have a ClientList.aspx page where I have defined <%@ import Namespace="ASPNET.StarterKit.TimeTracker.BusinessLogicLayer" %> at the top of the page.

Yet i get an error "ClientsCollection is not defined" for the line
Dim clients as ClientsCollection

Why would i get this if I have defined the class within the namespace and have the appropriate import statement at the top of the ClientList.aspx page ?  

Im using web matrix, is there a place where I need to define which files get included in the compile ?

Any help would be appreciated.

Tariq H
0
Comment
Question by:tariq_h
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 500 total points
ID: 12100048
Hi,

have you rebuild the ASPNET.StarterKit.TimeTracker.BusinessLogicLayer dll ?

Regards,
B..M
0
 
LVL 10

Expert Comment

by:123654789987
ID: 12100671
Try to use a fully qualified name at Dim clients as ASPNET.StarterKit.TimeTracker.BusinessLogicLayer.ClientsCollection.

This would tell if the namespace is being refered or not
0
 

Author Comment

by:tariq_h
ID: 12107263
I have tried the fully qualified name but that didnt work either.
How would you rebuild the dll ?  I havent found anyway to put compile options into web matrix .

TIA

Tariq H
0
 
LVL 3

Expert Comment

by:mAjKoL
ID: 12107976
Shouldn't there be:
Dim clients As New ClientsCollection ??

HTH
0
 

Author Comment

by:tariq_h
ID: 12120158
B..m :  That was the problem , what I didnt know and what should be stated in big black bold letters is that Web Matrix does NOT compile classes for you ! Ive read three ASP.NET books and none of them state this.
You also need to put the compiled dlls in the bin directory under the main folder of your project.

Thanks for your help all.

Tariq H
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question