Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error BC30466: Namespace or type cannot be found

Status
Not open for further replies.

mit99mh

Programmer
Sep 24, 2002
246
GB
Hi I get the error

D:\development\aspdotnet\classes\AccessDatabaseComponent.vb(2) : error BC30466: Namespace or type 'Data' for the Imports 'System.Data' cannot be found.

Imports System.Data
~~~~~~~~~~~

when I try and compile the code shown below

Imports System
Imports System.Data

Namespace AccessDatabaseConnection

Public Class AccessDB



End Class

End Namespace

what makes this perplexing for this newbie is that I can import these namespaces when using codebehind files in the same directory

Any help much appreciated

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top