Tuesday, January 11, 2011

Visual Studio & Windows 7 IIS Configuration

Installing IIS and ASP.NET on Windows 7

Installing the ASP.NET component of IIS 7.0 in Windows Vista enables ASP.NET Web applications to run as local IIS Web sites. To enable Visual Studio to create and use local IIS Web sites, you must enable metabase compatibility. This lets Visual Studio interact with the IIS metabase and with the IIS 7.0 configuration store.

If IIS is enabled on your computer before you install the .NET Framework version 4, ASP.NET 4 is automatically registered with IIS. However, if IIS is not enabled on the computer when you install the .NET Framework, you must manually register ASP.NET with the appropriate version of IIS by running the ASP.NET IIS Registration tool. For more information, see ASP.NET IIS Registration Tool (Aspnet_regiis.exe).

Note Note

You must have administrative permissions to install IIS 7.0.

To enable ASP.NET on Windows Vista for debugging

  1. In , open Control Panel and then click Programs.

  2. Under Programs and Features, click Turn Windows features on or off.

    Note Note

    If Control Panel is set to display in Classic view, click Programs and Features, and

    in then in the left pane, click Turn Windows features on or off.

    The Windows Features dialog box is displayed.

    Note Note

    If User Account Control (UAC) is enabled, it might display a message when

    you try to access the Windows Features dialog box. Click Continue to access the

    dialog box. For more information, see User Account Control.

  3. Expand Internet Information Services.

  4. Expand Web Management Tools, expand IIS 6 Management Compatibility, and then select the IIS 6 Metabase and IIS 6 configuration compatibility check box.

  5. Expand World Wide Web Services, expand Application Development Features, and then select the ASP.NET check box.

    Note Note

    The options that are required for Web application development will

    automatically be selected.

  6. Expand World Wide Web Services, expand Security, and then select the Windows Authentication check box.

    To enable Visual Studio to debug applications, you must configure IIS 7.0 with the Windows Authentication module. By default, the module is not configured as part of IIS.

  7. Click OK to start the IIS and ASP.NET installation process.

  8. When the configuration process finishes, close Control Panel.

No comments: