?
Solved

NameSpace Error - class is not defined ?

Posted on 2004-09-20
5
Medium Priority
?
285 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 1500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

762 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