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

using a c# DLL in ASP

I'm a .Net noob. I created a dll using c#. Now, I want to reference that
DLL in an ASPX page. I put the import directive in the page like this:

<%@ Import Namespace="BHQ.BusinessLogicLayer" %>

but keep getting this error:

CS0246: The type or namespace name 'BHQ.BusinessLogicLayer' could not be
found (are you missing a using directive or an assembly reference?)

What are the procedures for using/registering a DLL in ASP.Net?

Tim
Nov 18 '05 #1
2 1365
I had accidentally moved my Bin folder.

Tim
"Tim Wallace" <reply@this_group.com> wrote in message
news:eh**************@TK2MSFTNGP09.phx.gbl...
I'm a .Net noob. I created a dll using c#. Now, I want to reference that
DLL in an ASPX page. I put the import directive in the page like this:

<%@ Import Namespace="BHQ.BusinessLogicLayer" %>

but keep getting this error:

CS0246: The type or namespace name 'BHQ.BusinessLogicLayer' could not be
found (are you missing a using directive or an assembly reference?)

What are the procedures for using/registering a DLL in ASP.Net?

Tim

Nov 18 '05 #2
Hi Tim:

You have imported the namespace, now you just need to tell ASP.NET the
name of the assembly you want to reference.

One way is to use the @ Assembly directive in the page.
http://msdn.microsoft.com/library/de...onassembly.asp

Since you'll probably use the assembly in more than one page, you can
also reference assemblies in the web.config file.
http://msdn.microsoft.com/library/de...assemblies.asp

Also, with the default settings, any assembly in the web application's
bin directory is automatically referenced.

HTH,

--
Scott
http://www.OdeToCode.com

On Mon, 16 Aug 2004 00:41:47 -0400, "Tim Wallace"
<reply@this_group.com> wrote:
I'm a .Net noob. I created a dll using c#. Now, I want to reference that
DLL in an ASPX page. I put the import directive in the page like this:

<%@ Import Namespace="BHQ.BusinessLogicLayer" %>

but keep getting this error:

CS0246: The type or namespace name 'BHQ.BusinessLogicLayer' could not be
found (are you missing a using directive or an assembly reference?)

What are the procedures for using/registering a DLL in ASP.Net?

Tim


Nov 18 '05 #3

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

Similar topics

5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
3
by: Mike L | last post by:
Should the command call "using" be before or after my namespace? **AFTER** namespace DataGridBrowser { using System; using System.Drawing; using System.Drawing.Drawing2D; using...
3
by: xzzy | last post by:
I was wondering why we have to have using System.Data using System.Configuration using etc.... why are they not all lumped into one 'using'? In other words, is there a best way to use...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
8
by: acb | last post by:
Hi, I wrote a DLL Component (using Visual Studio 2005) and managed to include it into a C# Console application. I am now trying to include this component into a Web project. I copy the DLL...
0
by: Metal2You | last post by:
I'm working on an ASP.NET 2.0 application in Visual Studio 2005 that accesses a Sybase database back end. We're using Sybase SQL Anywhere 9.0.2.3228. I have installed and registered the Sybase...
10
by: mg | last post by:
I'm migrating from VB6 and have a question about using 'Using' and the best way to use it. Here is a example of a small bit of code: dbConx("open") Using CN Dim CMD As New OleDbCommand(sSQL,...
0
by: Eugene Anthony | last post by:
The problem with my coding is that despite removing the records stored in the array list, the rptPages repeater control is still visible. The rptPages repeater control displayes the navigation...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.