Introduction
This article covers how to deploy a Web Application on the server with IIS 6. The article targets the developers that don't know very well the deployment of Asp.Net application.
Creating a Virtual Directory
A virtual directory is an alias to the physical directory, but it may be access from internet.
The better way to create a virtual directory is the follow method:
- open IIS Manager under Control Panel --> Administrative Tools --> Internet Information Services
- Expand your local computer node, right click on the website if you want and click New > Virtual Directory
- Enter the name of our virtual directory and choose the physical path where the our application is.
- Specify access permissions for the users that use our application
Configuring Asp.Net version
Sometimes the server that you use, have both framework installed. We need to specify the appropriate framework to run our application correctly.
Right click on the virtual directory and select Properties.
In the Asp.net tab select the correct version of framework and click Ok.
Configuring Application pools
The application pool is a functionality that are introduced with IIS 6 to isolate web application into a group called applications pools.
With that the web applications run under a worker process called w3p.exe. The applications in the same group, run under the same worker process.
A new application pool can create with IIS Mananger.
Select the application pools node, right click anc New > Application Pool. Type a pool application ID.
There are some options to setup for application pool but for this time, it's all.
Associating site with application pool
We need to associate our site with our application pool we created. Right click on the our virtual directory and go to tab "Home Directory". Select the application pool we created from the drop down list and click Ok.