Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / January 2006

Tip: Looking for answers? Try searching our database.

Compiler error: Type not defined inspite of available class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 11 Jan 2006 05:59 GMT
Hi,
I have been working on ASP.NET 2.0. When I was trying to work with one of
the master pages, I used some classes (.vb files) in App_code directory. When
the application is run, it gives me the following error.

BC40056: Namespace or type specified in the Imports 'XXXX' doesn't contain
any public member or cannot be found. Make sure the namespace or the type is
defined and contains at least one public member. Make sure the imported
element name doesn't use any aliases.

I have verified and the class file is present in the App_code directory with
the namespace defined. Please help me. I am not sure as to what I am doing
wrong.

Rgds.
Jim Andersen - 26 Jan 2006 08:12 GMT
> Hi,
> I have been working on ASP.NET 2.0. When I was trying to work with one of
[quoted text clipped - 12 lines]
> the namespace defined. Please help me. I am not sure as to what I am doing
> wrong.

I get the same error when I work in the VS 2005 IDE. The project compiles
and works OK though, but I get squiggly lines under the "undeclared" method
calls.

I have copied MS Data Access Application Blocks dll to the bin, added a
reference, and at the top of frmTst.aspx.vb, I do "imports
Microsoft.Applicationsblocks.Data", and it looks (and works) great. After
some developing, all of a sudden I see the squiggly lines, and the error you
mention is displayed as a tooltip-text when I hover over the "imports...."
statement.

/jim

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.