Windows 2012 systems naturally support the ASP.net 4.5 framework, just as the Windows 2008 system defaults to support asp.net 3.5. We can also install 3.5 frames in 2012 systems, allowing IIS to support ASP.net 2.0/3.5/4.0/4.5 multiple versions at the same time.
Note that the four mentioned here. NET Framework version, in fact, has been merged into two. ASP.net 3.5 is an upgraded version of. NET 2.0, and ASP.net 4.5 is an upgraded version of. NET 4.0. That is, when we need the 2.0 version, we adjust the. NET Framework to 3.5, and by the same token, when we need the 4.0 version, we can adjust the. NET Framework to 4.5.
Installation Preparation
This article is an example of IIS 8.0, which is also applicable to the IIS 7.0/7.5/8.5 version, but does not apply to IIS version 6.0, version 6.0. NET Framework support is very different from the settings and later versions. When we install IIS 8.0, we need to ensure that the following application development modules are installed.
We know that IIS can support multiple Web access at the same time, which is what the industry typically says is a virtual host. Each virtual host is run in a particular application pool, where either a Web site or multiple sites can be placed in a single program pool. Asp. NET version is set in the application pool, and all sites in the same program pool have the same. NET Framework.
Set method
To test the difference. NET version, we can create two new websites and put them in different application pools. The steps for creating a new Web site are no longer detailed here, and you can refer to other articles in the official blog of Chao data. The following describes how to modify the application pool. NET version.
Open the application pool, select the program pool you want to adjust, and then click Basic Settings on the right-hand action bar.
In the Edit Application Pool dialog box, you can select the. NET Framework version. Look at the diagram below, although only 2 versions are shown, but 2.0/3.5/4.0/4.5 four can be supported. NET Framework, or you can choose "No managed code" so that the program pool does not support. NET at all.
Incidentally, the key settings point for the application pool is in addition to. NET version, there is managed piping mode (classic/integrated), and whether 32-bit applications are enabled (the default is 64-bit). Therefore, to determine the basic characteristics of an application pool, you need to determine both. NET version, managed mode, and 32/64-bit three features.