Windows Vista Forums

Adding class library to website

  1. #1


    Fresno Bob Guest

    Adding class library to website

    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" <nospam@xxxxxx> wrote in message
    news:%23kQwgvv6IHA.3684@xxxxxx

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

      My System SpecsSystem Spec

  2. #2


    sloan Guest

    Re: Adding class library to website

    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" <nospam@xxxxxx> wrote in message
    news:%23kQwgvv6IHA.3684@xxxxxx

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


      My System SpecsSystem Spec

Adding class library to website

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Constants Class Library Alan Sloan .NET General 4 19 Feb 2010
Icons in dll / assembly / class library KS .NET General 1 07 May 2009
Re: invisible classes outside the Class Library Jon Skeet [C# MVP] .NET General 0 07 Jul 2008
RE: invisible classes outside the Class Library Jeff Winn .NET General 0 07 Jul 2008
Using a C# Class Library with VB6 lord.torall .NET General 2 26 Apr 2008