Cannot load the classes..

  • Thread starter Thread starter BASP
  • Start date Start date
B

BASP

I have created some classes with a namespace "TestLibrary"
in VB.NET and try to used it in my web site. However, when
I use the "Import TestLibrary", there is an error
saying "Compiler Error Message: BC30466: Namespace or
type 'TestLibrary' for the Imports 'TestLibrary' cannot be
found.

I have followed the instruction and created a folder
called "Bin" and copied the "TestLibrary.dll" to the
folder.

What did I do wrong? We are still running the
Microsoft .NET Framework 1.0

Thanks in advance...
 
BASP said:
I have created some classes with a namespace "TestLibrary"
in VB.NET and try to used it in my web site. However, when
I use the "Import TestLibrary", there is an error
saying "Compiler Error Message: BC30466: Namespace or
type 'TestLibrary' for the Imports 'TestLibrary' cannot be
found.

Did you first make a reference to the .dll? Assuming you did, the line
should read:

Imports TestLibrary (not Import TestLibrary as you wrote above)
I have followed the instruction and created a folder
called "Bin" and copied the "TestLibrary.dll" to the
folder.

You really shouldn't have to create a bin folder on the target machine,
there should already be a bin folder for the web app that will host the
..dll.
 
Hi, thanks for the advice... I have fixed the problem. The
reference, I forgot about that.

About the "Imports", it really should be "Import" instead,
or else, it will give out another error...

Thanks....
 
Glad you got it straightened out. Regarding the "Imports" vs. "Import"...If
we're talking about VB.NET, then it is, in fact, "Imports" not "Import".
"Import" is not a valid keyword in VB.NET.
 
Back
Top