Previous Next
Deployment Guide for .NET Chapter 2 -Deploying ASP.NET Application

Chapter 2 - Deploying ASP.NET Application

In Programmer's Guide for .NET -Chapter 3 Developing ASP.NET Application, we have created the ASP.NET application. The ASP.NET application can be run on the local Internet Information Server (IIS) but you may want to deploy the ASP.NET on other machines. Visual Studio .NET provides the feature to create the installer ASP.NET applications so you can install the application on other machines easily.

In this chapter:

Creating the Setup Project for ASP.NET Application

You can download the example of the Programmer's Guide for .NET -Chapter 3 Developing ASP.NET Application and follow the steps below to create the setup file and install it.

  1. Open the Chapter 3 example in the Visual Studio .NET.
  2. Figure 2.1 - Open a project
  3. Right Click Solution, select Add > New Project...from menu.
  4. Figure 2.2 - Add a new project
  5. Select Setup and Deployment Project in Project Types, and the select Setup Wizard in Templates. Type "web school system" for name. Click OK to create the Setup and Deployment Project.
  6. Figure 2.3 - Select Setup Wizard template
  7. The Setup Project Wizard is shown.
  8. Figure 2.4 - Setup Wizard Welcome Page
  9. Select Create a setup for a web application and then click Next >.
  10. Figure 2.5 - Select the project type
  11. Select Primary output from webschoolsystem and Content Files from webschoolsystem, this option will help you to add all the DLL or EXE and ASP.NET file to the setup file. You must select a correct project for primary output in the solution. After that, click Finish. You also can click Next > to follow the wizard to add readme file to the setup file.
  12. Figure 2.6 - Select the project output
  13. The Setup project is created in solution.
  14. Figure 2.7 - The Project created
  15. Open the File System (Setup) of the Setup project. Right click the Web Application Folder\bin Folder, select Add > File... to add the hibernate.cfg.xml manually from the DB-VA generated C# project.
  16. Figure 2.8 - Add a files to project
    Figure 2.9 - The files in the folder
  17. Right click the Web School System Setup project and then select Build on menu.
  18. Figure 2.10 - To build the application
  19. The Setup File is created in the Web School System Setup\Debug folder.
  20. Figure 2.11 - The Setup execute file are generated

Installing the Application

The setup file for ASP.NET application is created. You can copy the Web School System Setup.msi file to other machines and install. The installation machine must have IIS installed otherwise the message below will be shown.

Figure 2.12 - The setup warning message
  1. The setup wizard will be shown if your machine has IIS installed. Click Next >.
  2. Figure 2.13 - Setup Welcome Page
  3. Type the Virtual Directory name and Port for the web application. The Virtual Directory is the web application for browser to access. For example, http://localhost:<<Port>>/<<Virtual directory>>.
  4. Figure 2.14 - enter the virtual directory and port
  5. Confirm to install, then the application will be installed on your selected path. Click Close to finish the installation.
  6. Figure 2.15 - Installation complete message
  7. Open the Internet Information Service (IIS) Manager, you can see the ASP.NET application is installed on Web Sites\Default Web Site\<Virtual directory>
  8. Figure 2.16 - Internet Information Service (IIS)
  9. Go to the http://localhost/webss/index.htm, the ASP.NET application is running in the IIS.

Previous Next
Visual Paradigm International Limited
Website: www.visual-paradigm.com
E-mail: support@visual-paradigm.com