473,406 Members | 2,371 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,406 software developers and data experts.

User Defined Name Space ERROR

i created a class1.vb, created a class1.dll.
now i moved it to \bin directory.
and to webconfig file i added
<compilation>
<add assembley="*"/>
</compilation>

Now i am trying to use it it in test.aspx
<%@ Import Namespace="HelloWorld" %>

ERROR GOES LIKE THIS
Compiler Error Message: BC30466: Namespace or type 'HelloWorld' for
the Imports 'HelloWorld' cannot be found.
Source Error:
Line 12: Option Explicit On
Line 13:
Line 14: Imports HelloWorld
Line 15: Imports Microsoft.VisualBasic
Line 16: Imports System

I NEED YOUR HELP. THX
Nov 18 '05 #1
2 1274
Hi, vengala s reddy,

You should add a reference to your assembly to the project. The project is
the one that gets compiled. It is not enough to add the compilation section
to the web.config as the web.config has nothing to do with the compilation
of the project. The compiler gets the info regarding the references from the
project settings.

Greetings
Martin
"vengala s reddy" <re******@yahoo.com> wrote in message
news:b9**************************@posting.google.c om...
i created a class1.vb, created a class1.dll.
now i moved it to \bin directory.
and to webconfig file i added
<compilation>
<add assembley="*"/>
</compilation>

Now i am trying to use it it in test.aspx
<%@ Import Namespace="HelloWorld" %>

ERROR GOES LIKE THIS
Compiler Error Message: BC30466: Namespace or type 'HelloWorld' for
the Imports 'HelloWorld' cannot be found.
Source Error:
Line 12: Option Explicit On
Line 13:
Line 14: Imports HelloWorld
Line 15: Imports Microsoft.VisualBasic
Line 16: Imports System

I NEED YOUR HELP. THX

Nov 18 '05 #2
Sounds like you're using Visual Studio.Net. If so, take a look at the tab
under the "Solution Explorer" tab, which is usually the "Class View" tab. It
shows a hierarchical representation of your namespaces and classes. I would
strongly suspect that, as you are using VB. your top-level NameSpace for
your class is "class1" and that your reference to it should be
"class1.HelloWorld". By default, Visual Studio.Net, when working with VB.Net
projects, will name the top-level NameSpace for that project with the name
of the project/dll, and it will not appear in the code, but in the Project
Properties.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"vengala s reddy" <re******@yahoo.com> wrote in message
news:b9**************************@posting.google.c om...
i created a class1.vb, created a class1.dll.
now i moved it to \bin directory.
and to webconfig file i added
<compilation>
<add assembley="*"/>
</compilation>

Now i am trying to use it it in test.aspx
<%@ Import Namespace="HelloWorld" %>

ERROR GOES LIKE THIS
Compiler Error Message: BC30466: Namespace or type 'HelloWorld' for
the Imports 'HelloWorld' cannot be found.
Source Error:
Line 12: Option Explicit On
Line 13:
Line 14: Imports HelloWorld
Line 15: Imports Microsoft.VisualBasic
Line 16: Imports System

I NEED YOUR HELP. THX

Nov 18 '05 #3

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

Similar topics

5
by: Bing Wu | last post by:
I have a user defined tablespace: Tablespace ID = 4 Name = DATASPACE Type = Database managed space...
9
by: Therese A. Sorna | last post by:
Hello all... I am using Access 2002. I have database set to add users names to the user level security when they are added to a particular table in a database, using the Catalog and...
5
by: Ed Havelaar | last post by:
I have a cool function that I want to use as a default value for a column in my table. But I can't because apparently Access doesn't allow user defined functions in expressions for default values....
3
by: bsa | last post by:
Hi, This maybe a stupid question for which I apologies, but I couldn't find a solutions so I'll ask. I'm a newbie and I'm trying to do the following: A have a base class called space that...
17
by: Steve R. Hastings | last post by:
I have been studying Python recently, and I read a comment on one web page that said something like "the people using Python for heavy math really wish they could define their own operators". The...
6
by: karthi | last post by:
hi, I need user defined function that converts string to float in c. since the library function atof and strtod occupies large space in my processor memory I can't use it in my code. regards,...
0
odyth
by: odyth | last post by:
not sure if anyone is having trouble with this, but the same thing happened to me. i have one text box in a custom dialog in my installer that would take the path to a database, if there was a space...
14
by: n3o | last post by:
Hello Comp.Lang.C Members, I have an issue with user input that I have been trying to figure out for the longest. For instance, let's say you have something like this: void foo() { int num;...
2
by: jmike | last post by:
I'm using some legacy code that has a user-defined exception in it. The top level program includes this line from TestRunError import * It also imports several other modules. These other...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.