Deploying an ASP.NET Server (IIS 7)

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

An ASP.NET Web server is an extended IIS server that has the ASP.NET runtime extensibility model integrated into the core server. The ASP.NET server configuration uses IIS modules for ASP.NET, .NET Extensibility, Request Filtering, ISAPI Filters, and ISAPI Extensions to the default IIS 7 Web server installation. This topic describes how to install the IIS modules that are required to deploy an ASP.NET Web server.

Note

You must be logged on as a member of the Administrators group to perform this task.

The following table describes the IIS modules that are added to the default installation for an ASP.NET Web server.

IIS module name Description

ASP.NET

Enables your Web server to host ASP.NET applications.

.NET Extensibility

Allows changes, additions, and extensions of Web server functionality in the request pipeline, the configuration, and the user interface.

Request Filtering

Performs UrlScan tasks such as configuring allowed verbs and file name extensions, setting limits, and scanning for bad character sequences.

ISAPI

Hosts ISAPI extension DLLs.

ISAPI Extensions

Supports dynamic Web content development using ISAPI extensions.

Note

In order to run ASP.NET 1.1 on Windows Server® 2008, you must also include the Metabase Compatibility module.

If you want your ASP.NET 1.1 applications to run in Integrated mode, you must upgrade them to ASP.NET 2.0. If you do not upgrade to ASP.NET 2.0, your ASP.NET 1.1 applications will run in Classic mode. For information about Integrated and Classic modes, see Upgrading ASP.NET 1.1 to IIS 7 on Windows Vista & Windows Server 2008.

To deploy an ASP.NET server

You can use the Web Platform Installer (Web PI) to easily install IIS, and applications that run on IIS. Because the Web PI installs the latest versions of available Web Platform offerings, with just a few simple clicks you can download and install any new tools or updates. To learn more about the Web PI, see Learn more and install the Web PI.

You can also perform this procedure by using the Windows user interface (UI) or from a command line.

To use the UI on Windows Server 2008 or Server 2008 R2

  1. Click Start, point to Administrative Tools, and then click Server Manager.

  2. In Roles Summary, click Add Roles.

  3. Use the Add Roles Wizard to add the Web server role.

    For detailed instructions about how to install a default IIS 7 Web server, see Deploying a Static Content Server (IIS 7).

  4. On the Select Role Services page, note the preselected role services that are installed by default, and then select the following additional role services:

    • ASP.NET

    • .NET Extensibility

    • Request Filtering

    • ISAPI

    • ISAPI Extensions

  5. On the Summary of Features to Install page, confirm your selections, and then click Install.

  6. On the Installation Results page, confirm that your installation of the Web Server (IIS) role and required role services completed successfully, and then click Close.

  7. To verify that IIS installed successfully, type the following into a Web browser:

    https://localhost

    You should see the default IIS Welcome page.

To use the UI on Windows Vista or Windows 7

  1. Click Start, and then click Control Panel.

  2. In Control Panel, click Programs, and then click Turn Windows features on or off.

  3. In the Windows Features dialog box, click Internet Information Services to install the default features, and then select the following additional features:

    • ASP.NET

    • .NET Extensibility

    • Request Filtering

    • ISAPI

    • ISAPI Extensions

  4. Click OK to close the Windows Features dialog box.

  5. To verify that IIS installed successfully, type the following into a Web browser:

    https://localhost

    You should see the default IIS Welcome page.

To use the command line

  • Type the following command at a Command Prompt or into a script: Start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI