Compartilhar via


How to: Configure an ASP.NET 1.0 Application in IIS 6.0

By default, Microsoft Internet Information Services (IIS) 6.0 serves static content. You must explicitly enable ASP.NET content to be served, or IIS returns a 404 error. You configure IIS 6.0 to serve dynamic content by creating and enabling a Web service extension. The Web service extension maps to the ASP.NET ISAPI extension (Aspnet_isapi.dll).

When you install ASP.NET version 1.1 or version 2.0 on a server with IIS 6.0 installed, a Web service extension is automatically created. However, when you install or register ASP.NET version 1.0 on a server that has IIS 6.0 installed, the registration process does not create a Web service extension and you must create the extension manually.

To create and allow a Web service extension for ASP.NET 1.0, and to generally manage extensions for all dynamic content in IIS 6.0, use the IIS Manager.

Starting IIS Manager

First, you need to start the IIS Manager.

NoteImportant

You must be logged on as a member of the Administrators group on the local computer to perform the following procedure (or procedures), or you must have been delegated the appropriate authority.

To start IIS Manager from the Run dialog box

  1. On the Start menu, click Run.

  2. In the Open box, type inetmgr and click OK.

To start IIS Manager from the Administrative Services console

  1. On the Start menu, click Run. In the Run text box, type control panel, and then click OK.

  2. In the Control Panel window, click Administrative Tools.

  3. In the Administrative Tools window, click Internet Information Services.

Creating and Enabling a Web Service Extension

Now that IIS Manager is started, you are ready to create and enable a Web service extension for ASP.NET 1.0.

To create and enable a Web server extension by using IIS Manager

  1. Expand the local computer node and click Web Service Extensions.

  2. In the details pane, click the task Add a new Web service extension.

  3. In the Extension name text box, type the name of the new Web service extension (such as ASP.NET v1.0), and then click Add. In the Path to file text box, type the path or click Browse to navigate to the.NET Framework version 1.0 Aspnet_isapi.dll file. Click OK.

    By default, the ASP.NET ISAPI extension is installed in the following location:

    %system root%\Microsoft.NET\Framework\versionNumber

    The version number shown in the path indicates the version number of the ASP.NET ISAPI extension used by the application. The version of the ASP.NET ISAPI extension in turn determines which version of the runtime is used by the application.

  4. Select the Set extension status to Allowed check box to automatically set the status of the new Web service extension to Allowed.

  5. Click OK to add the new Web service extension.

See Also

Tasks

How to: Configure ASP.NET Applications for an ASP.NET Version

Other Resources

Side-by-Side Support in ASP.NET
ASP.NET and IIS Configuration