Cannot load the classes..

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...
 
S

Scott M.

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.
 
G

Guest

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....
 
S

Scott M.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top