Partilhar via


Internet Information Service Hosting Instructions

To run the samples that are hosted by Internet Information Services (IIS), you must make sure that IIS is properly installed and is running.

To install IIS version 5.1 on Windows XP with Service Pack 2 installed

  1. In Control Panel, click Add or Remove Programs.

  2. In the Add or Remove Programs dialog box, click Add/Remove Windows Components.

  3. In the Windows Components Wizard, select the Internet Information Services (IIS) check box, and then click Next.

  4. If the Files Needed dialog box is displayed, insert your operating system installation disc, browse to the i386 folder, and then click OK.

  5. When installation completes, click Finish.

  6. Close the Add or Remove Programs dialog box, and then close Control Panel.

To install IIS version 6.0 on Windows Server 2003

  1. From Manage Your Server, click Add or remove a role, and then click Next.

  2. Select Application server (IIS, ASP.NET) from the Server Role list, and then click Next.

  3. Check Enable ASP.NET, and then click Next.

  4. If the summary of selections is correct, click Next.

  5. If the Files Needed dialog box is displayed, insert your operating system installation disc, browse to the i386 folder, and then click OK.

  6. When installation completes, click Finish.

To install IIS version 7.0 on Windows Vista

  1. Click Start and select Control Panel.

  2. Select the Programs group.

  3. Under Programs and Features, select Turn Windows Features on or off.

  4. The User Account Control dialog is displayed, click Continue.

  5. The Windows Features dialog is displayed. Expand the item labeled Internet Information Services.

  6. Expand the item labeled World Wide Web Services.

  7. Expand the item labeled Application Development Features.

  8. Make sure the following items are selected:

    1. .Net Extensibility

    2. ASP.NET

    3. ISAPI Extensions

    4. ISAPI Filters

  9. Expand the item labeled Web Management Tools, select IIS Management Console.

  10. Under the item labeled World Wide Web Services, expand Common Http Features.

  11. Make sure Static Content is selected.

  12. Under the item labeled World Wide Web Services, expand Security.

  13. Make sure Windows Authentication is selected.

  14. Expand the item labeled IIS 6 Management Compatibility, select IIS 6 Scripting Tools.

  15. Expand the item labeled Microsoft .NET Framework 3.0, select Windows Communication Foundation Http Activation.

  16. Click OK.

To install IIS version 7.0 on Windows Server 2008

  1. From Server Manager, select Roles, and then under Roles Summary, click Add Roles.

  2. Click Next to display the Select Server Roles dialog.

  3. Select Application Server from the Roles list, and then click Next twice to display the Select Role Services dialog for the Application Server role.

  4. Check Web Server (IIS) Support, and under Windows Process Activation Service Support, check HTTP Activation. If you are prompted to install additional role services and features, click Add Required Role Services. Click Next twice to display the Select Role Services dialog for the Web Server (IIS) role.

  5. Expand Management Tools, then expand IIS 6 Management Compatibility, then select IIS 6 Scripting Tools. If you are prompted to install additional role services and features, click Add Required Role Services. Click Next.

  6. If the summary of selections is correct, click Install.

  7. When installation completes, click Close.

To verify the installation of IIS and ASP.NET

  1. Save the HTML file found at the end of this topic in the root \InetPub\wwwroot directory and name it Default.aspx.

  2. Open a browser window.

  3. Type https://localhost/Default.aspx in the address box and press ENTER.

  4. A Web page with the text "Hello World" should appear.

Note

Each time you install a new version of the .NET Framework, you must re-register aspnet_isapi as a Web service extension for IIS. To do so, issue the aspnet_regiis –I –enable command as detailed in IIS Hosted Service Fails.

Sample Code

<html>
   <body>
       <form >
           <h3> Hello World
           </h3>
       </form>
   </body>
</html>