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

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
2 3815
I'm an idiot - I forgot to add the word public before the class name.....

"Fresno Bob" <no****@nospam.comwrote in message
news:Ov**************@TK2MSFTNGP03.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
I have a class library (my data access layer) which I have added as a
project to my website. How do I pass my connection string from my website's
web.config into the dll. What is the "correct" way to do this? Regards,
Chris.

"Fresno Bob" <no****@nospam.comwrote in message
news:Ov**************@TK2MSFTNGP03.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 #3

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

Similar topics

7
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
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
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
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
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
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
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
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...
1
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.