12.21. Creating Applications

Problem

You want to create a new application for a web site or virtual directory.

Solution

Using a graphical user interface

To create a new application for a web site, do the following:

  1. Open Internet Information Services (IIS) Manager.

  2. In the left pane, expand the console tree and select your web site.

  3. Right-click on the web site and select Properties.

  4. Select the Home Directory tab.

  5. If the Default Application is already defined for the site, click Remove.

  6. Click Create and type a name for your new application.

  7. Assign appropriate execute permissions for your application.

  8. Assign your application to the appropriate application pool.

  9. Click Apply.

To create a new application for a virtual directory, do the following:

  1. Open Internet Information Services (IIS) Manager.

  2. In the left pane, expand the console tree and select a virtual directory under your web site.

  3. Right-click on the virtual directory and select Properties.

  4. Select the Virtual Directory tab.

  5. If a default application name is already defined for the site, click Remove.

  6. Click Create and type a name for your new application.

  7. Assign appropriate execute permissions for your application.

  8. Assign your application to the appropriate application pool.

  9. Click Apply.

Discussion

IIS terminology can be confusing, specifically:

Application

A group of files (usually ASP scripts) contained in a web site's home directory or a virtual directory (and possibly subdirectories) that clients (web browsers) can access to perform some programmatic function. ...

Get Windows Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.