Solved

NameSpace Error - class is not defined ?

Posted on 2004-09-20
5
282 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

809 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