Step 2: Adding an Existing Business Project (Optional)

If you have an existing business object project you want to add to your Web Forms solution, follow these steps:

  1. Go to the Solution Explorer and right-click the solution node (the first node), and select Add | Existing Project... from the shortcut menu.

    In the Add Existing Project dialog, navigate to the directory that contains your business object project, select the project file, and then click the Open button.

    Your Solution should now contain the specified business object project:

  2. When you eventually build this solution (not yet), the business object project will produce a dll and the Web Forms project will produce another dll. In this step you will add a reference to the business object dll in the Web Forms project. To do this, right-click the Web Form project's References node and select Add Reference... from the shortcut menu.

    In the Add References dialog, select the Projects tab, select the business object project then click OK to add the assembly to the project.

  3. Next, rebuild the new solution to make sure everything's set up properly. To do this, select Build | Build Solution from the main menu. If everything's fine, you should see the following message in the Visual Studio Output Window:

  4. At times you may want to rebuild AND run a solution. You can do this by selecting Debug | Start from the main menu, or by pressing F5, or by clicking the Start button on the Visual Studio toolbar:


© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 04/21/17
Comment or report problem with topic