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
- Installing the Application
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.
- Open the Chapter 3 example in the Visual Studio .NET.
- Right Click Solution, select Add > New Project...from menu.
- 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.
- The Setup Project Wizard is shown.
- Select Create a setup for a web application and then click Next >.
- 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.
- The Setup project is created in solution.
- 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.
- Right click the Web School System Setup project and then select Build on menu.
- The Setup File is created in the Web School System Setup\Debug folder.
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.
- The setup wizard will be shown if your machine has IIS installed. Click Next >.
- 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>>.
- Confirm to install, then the application will be installed on your selected path. Click Close to finish the installation.
- Open the Internet Information Service (IIS) Manager, you can see the ASP.NET application is installed on Web Sites\Default Web Site\<Virtual directory>
- Go to the http://localhost/webss/index.htm, the ASP.NET application is running in the IIS.
|
|
| Visual Paradigm International Limited |
| Website: |
www.visual-paradigm.com |
| E-mail: |
support@visual-paradigm.com |
|