473,383 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Cannot load the classes..

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

Nov 18 '05 #1
3 863

"BASP" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
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.

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

Thanks in advance...

Nov 18 '05 #2
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....
-----Original Message-----

"BASP" <an*******@discussions.microsoft.com> wrote in messagenews:07****************************@phx.gbl...
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 lineshould 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.

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

Thanks in advance...

.

Nov 18 '05 #3
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.
<an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
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....
-----Original Message-----

"BASP" <an*******@discussions.microsoft.com> wrote in

message
news:07****************************@phx.gbl...
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.

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

Thanks in advance...

.

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: robert walker | last post by:
hi all, to my webapp named mrf, i have added load-on-startup tag to mrf\WEB-INF\web.xml so i added a snippet like so <servlet> <servlet-name>loadDbProperties</servlet-name>...
1
by: Cedric | last post by:
Hello, I'm developping my first Struts application. I've got this error: Cannot find message resources under key org.apache.struts.action.MESSAGE web.xml <servlet>...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
0
by: Janaka | last post by:
I'm using Web Matrix and a custom built DLL which I've placed in my /bin directory for my website on a Windows 2003 server. I'm using the same setup which worked previously on Windows 2000. Any...
1
by: WFB | last post by:
Hi, I have a base class from which all of my pages derive (ABCBasePage). For example, ABCCustomerSelect Inherits ABCPasePage. I would now like to have ABCPocketSelect which should inherit from...
0
by: L Scott | last post by:
I've created a page ancestry (framework) for our application so that all pages in our app would have the same look and feel. To do this, I created several user controls (header, footer, menu,...
1
by: edfialk | last post by:
Hi all, I'm desperately trying to get a simple mysql connection working in php 4.3.9 and I think I have a doozy for you guys. First of all, I didn't set up ANY of this system, I'm just working...
0
by: =?Utf-8?B?TGFzdGJ1aWxkZXJz?= | last post by:
Hi all, I have a weird problem which has been causing me a headache for the last two days. I have to dynamicly generate a schema in memory and load it into a dataset in memory to be returned...
1
by: kw.housing | last post by:
I have all the library already in path: $ ls -l /opt/IBM/db2/lib64 | grep libdb2o -r-xr-xr-x 1 bin bin 7757295 Jul 12 2006 libdb2osse.a* -r--r--r-- 1 bin bin ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.