473,509 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding class library to website

Hi I am used to using the App_Code folder to put my DAL and BLL classes.
However I want to move toward using separate dll's so I can start doing
things like Unit Tests and using Sandcastle for documentation.

My class library DAL project contains 4 .vb files, each one containing a
single class, which maps to a DB table.This builds OK.
I then create a website and add the class library project to the website. I
then in the website a reference to the project. This builds OK. And I can
see the DLL in the bin folder of the website.

When I go to add code I can't figure out how to "reference" my DAL - it
doesn't appear in the intellisense. I know this will be stupid but I can't
figure it out.

Regards, Chris.
Jul 21 '08 #1
1 1330
What is the default namespace of the class library?

Try typing

DAL.
and see if stuff starts "appearing".

Other way

using DAL;
or
imports DAL

AGain, I"m guessing "DAL", you need to check your namespace for your code.


"Fresno Bob" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi I am used to using the App_Code folder to put my DAL and BLL classes.
However I want to move toward using separate dll's so I can start doing
things like Unit Tests and using Sandcastle for documentation.

My class library DAL project contains 4 .vb files, each one containing a
single class, which maps to a DB table.This builds OK.
I then create a website and add the class library project to the website.
I
then in the website a reference to the project. This builds OK. And I can
see the DLL in the bin folder of the website.

When I go to add code I can't figure out how to "reference" my DAL - it
doesn't appear in the intellisense. I know this will be stupid but I
can't
figure it out.

Regards, Chris.


Jul 21 '08 #2

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

Similar topics

7
5388
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to...
4
5570
by: Dmitry Korolyov [MVP] | last post by:
When we use btnSubmit.Attributes = "javascript: this.disabled=true;" to make the button disabled and prevent users from clicking it again while form data still posting, there is no longer...
2
2037
by: Avi Shilon | last post by:
Hi, I'm trying to create a Solution that contains several projects within it, one of which is an ASP.NET web application and the others are class libraries (Data and Business tiers, which are...
2
2640
by: Anna | last post by:
I added a small Web.Config file to the root of my website so that I could view errors on a machine other than the server: <configuration> <system.web> <customErrors mode="Off" /> </system.web>...
10
2316
by: Trevor | last post by:
Hey, I am trying to do this tutorial on the microsoft site : http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dndotnet/html/usingadonet.asp I can get everything to work up to...
28
1855
by: Ilias Lazaridis | last post by:
I understand that I can use __metaclass__ to create a class which modifies the behaviour of another class. How can I add this metaclass to *all* classes in the system? (In ruby I would alter...
3
1865
by: Jonathan Wood | last post by:
I could really use some help on this. First of all, I want to create a Web control where I render the control completely from scratch based on information from a database. In the book...
2
1700
by: Fresno Bob | last post by:
I am used to putting my business logic layer etc in the App_code folder in a website project. I want to use class libraries so I can use Sandcastle and NUnit. However unlike a website project I do...
3
1310
by: =?Utf-8?B?QWxleGFuZGVyIFd5a2Vs?= | last post by:
I recently raninto major problems when I added the Exception namespace to the Project which has my DBML file attached to it. Once I renamed all the Exceptions instances to Syste.Exception the...
2
3819
by: Fresno Bob | last post by:
Hi I am used to using the App_Code folder to put my DAL and BLL classes. However I want to move toward using separate dll's so I can start doing things like Unit Tests and using Sandcastle for...
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
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...
1
7069
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
7505
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
5652
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,...
0
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.