You can use IIS Manager to create a virtual directory for an ASP.NET Web application that is hosted in IIS 5.0, IIS 5.1, and IIS 6.0. A virtual directory appears to browsers as if it were contained in a Web server’s root directory, even though it can physically reside somewhere else. This approach enables you to publish Web content that is not located under the root folder of a Web server, such as content that is located on a remote computer. It is also a convenient way to set up a site for local Web development work, because it does not require a unique Web site for each virtual directory. This topic explains how you can create a virtual directory and configure it to run ASP.NET pages.

  1. In IIS Manager, expand the local computer and the Web site to which you want to add a virtual directory.
  2. Right-click the site or folder in which you want to create the virtual directory, click New, and then click Virtual Directory.
  3. In the Virtual Directory Creation Wizard, click Next.
  4. In the Alias box, type a name for the virtual directory and then click Next. Choose a short name that is easy to type, because users type this name to access the Web site.
  5. In the Path box, type or browse to the physical directory that contains the virtual directory, and then click Next.

    You can select an existing folder or create a new one to contain the content for the virtual directory.

  6. Select the check boxes for the access permissions that you want to assign to the users.

    By default, the Read and Run Scripts check boxes are selected. These permissions enable you to run ASP.NET pages for many common scenarios. For more information, see the next section in this topic.

  7. Click Next and then click Finish.

Post By Gishore J Kallarackal (2,121 Posts)

Gishore J Kallarackal is the founder of techgurulive. The purpose of this site is to share information about free resources that techies can use for reference. You can follow me on the social web, subscribe to the RSS Feed or sign up for the email newsletter for your daily dose of tech tips & tutorials. You can content me via @twitter or e-mail.

Website: → Techgurulive