How to: Deploy Web Projects Targeted for Earlier Versions of the .NET Framework

When you deploy a Web application that targets an earlier version of the .NET Framework, you must make sure that the production server that you are deploying to is set up correctly, and you must configure the application in IIS to use the targeted version of the .NET Framework.

For general information about how to deploy Web applications, see ASP.NET Web Deployment Overview.

To deploy a Web application that targets an earlier version of the .NET Framework

  1. Make sure that the Web hosting server has the targeted version of the .NET Framework installed. For information about how to install an earlier version of the .NET Framework, see How to: Host Web Applications That Use Different Versions of the .NET Framework on the Same Server.

  2. Make sure that an application pool is available for the targeted version of the .NET Framework.

    In both IIS 7.0 and IIS 6.0, all applications in an application pool must run under the same version of the common language runtime (CLR). The .NET Framework 3.0 and the .NET Framework 3.5 use the .NET Framework 2.0 CLR. Therefore, applications that target the .NET Framework 3.0 and the .NET Framework 3.5 will run in application pools that run under the .NET Framework 2.0.

    In IIS 7.0, the CLR that an application runs under is one of the settings of the application pool. You must verify that an existing application pool is assigned to the targeted CLR. For more information, see IIS 7.0: Managing Application Pools in IIS 7.0.

    In IIS 6.0, there is no IIS setting that identifies the CLR that an application runs under. You must make sure that all applications in an application pool target the same version of the CLR. For more information, see Configuring Application Pools in IIS 6.0.

  3. Deploy the Web application by using your preferred method. For more information about deployment methods, see ASP.NET Web Deployment Overview.

  4. Configure the application to use the correct version of the .NET Framework.

    For IIS 7.0, assign the application to an application pool that runs under the targeted version of the .NET Framework. For more information, see IIS 7.0: Managing Applications in IIS 7.0.

    For IIS 6.0, follow these steps:

See Also

Tasks

How to: Host Web Applications That Use Different Versions of the .NET Framework on the Same Server

Concepts

.NET Framework Multi-Targeting for ASP.NET Web Projects

ASP.NET Side-by-Side Execution Overview