Enabling IIS 7.X on Windows 7, Vista SP1, Windows 2008, Windows 2008/R2

To set up IIS to run ASP.NET applications (including MVC 3 and Web Matrix):

  1. Install the Microsoft Web Platform Installer 3.0  from here.

  2. Run the Web Platform Installer (WPI) and select Products on the top and Server in the left pane. 

    WPI3

  3. Click the Add button for IIS 7 Recommended Configuration.

  4. Click Install.

The image below from Windows 2008 R2/SP1 Server Manger shows the 21 Role Services enabled by the IIS 7 recommended configuration.

EnaledRoles

 

If you need additional features (known as role services in Windows 2008)  such as  Window Authentication, Dynamic compression, or Tracing:

In Windows 7:

  1. Select the windows start button and enter Prog.
     Win7ProgFeatures
  2. Select Programs and Features.
    Win7turnFeaturesOnOrOff
  3. Select Turn Windows features on or off.
  4. Select Internet Information Services.
  5. Select the feature you want to enable. In the image below, Windows Authentication is selected.
    Win7turnFeaturesOnOrOff_winAuthen
  6. Select OK.

In Windows 2008:

  1. Enter Server in the Start menu and select Server Manager.

    StartServerManager

  2. In the Web Server(IIS) section, select Add Role Services (see the Roles image above.)

  3. Select each role service you need.

  4. Select Next.

  5. Select Install.