Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4000244
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:45:27+00:00 2026-05-20T07:45:27+00:00

I am making a project file called Business . I have a website project

  • 0

I am making a project file called Business. I have a website project file as well. I want to be able to access the classes in the Business project in the website project. What are the necessary steps in order to make all the right references and includes so that I can successfully use classes from another project. Also, if I want to be able to use the Business project file to access database features do I need a separate web.config file in order to put the connection strings? If so are there necessary steps in order to make a web.config file work with the Business project, such as references etc. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:45:28+00:00Added an answer on May 20, 2026 at 7:45 am

    First the Business project to your Website project’s solution.
    Then add the Business project as a reference to your website project using the “Add reference” option.
    When you see the “Add reference” dialog box, switch to the “Projects” tab and you’ll see the business project listed there.

    As regards connection strings in web.config file…
    The Website project is the “Application”, the Business project is an assembly. If you have a Data project, then that’s an assembly as well. What you need to know/understand here is that assemblies don’t have app.config/web.config files. They automatically use the “config” file of the “Application” that uses them.

    So in other words, your Website project will need to have the connection string in the web.config file. None of the other “library” projects should have or need to have a “config” file of their own.

    When the application runs (in this case your Website application) and it uses the services of the Business assembly, the business assembly will automatically “see” the web.config file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a small website as my first project. I have finalized to
I am making a project where i am drawing waveform of an audio file
I have a little problem, I'm making project and I'm sending data from client
I am making a project that should compile on Windows and Linux. I have
I am making a project on a restaurant where I have put table reservation.
I have an AS3 project making use of compile time constants. This has worked
I have searched all over the web with no luck of making this project
I have a class file (header and cpp) that I made, that I want
I'm making a project using GAE, and have a terrible problem. I wanted to
I have a Silverlight 4 application where I am making use of shared classes.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.