|
-
Apr 17th, 2002, 09:10 AM
#1
comPLETELY stumped: referencing class located within vb.net web application
Hello All,
I am in the process of learning .NET....I created a simple class in my ASP.NET web application (using VB.NET) to access my database to return a list of states to populate a user control I made to display these states. Yet when I try to Import this class and then create a new instance of it, the parser returns an error like this :
Namespace or type 'Class1' for the Imports 'WebApplication1.MyClassNameSpace.Class1' cannot be found
the program line on which this error occurs is :
Imports WebApplication1.MyClassNameSpace.Class1
this line is at the very top of the code-behind file for my aspx page, AND I can drag & drop that line from the Class View which tells me the project "knows" about my class, yet somehow can't find it at runtime...
i've created smaller web projects with the sole intention of just getting a class defined by myself to import into another .vb file and simply CAN'T get it to work, and neither can my co-workers....also, i have successfully created this class in a separate project, compiled it, and referenced it within this web app, so i am left with thinking that you must do something special to a class you define within a web application in order to make it accessible to other classes in the same web app.
does anyone have any insight into this problem??
Thank you very much for your time,
Kenton Taylor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|