Run-CMD and enter the following command:C: \ windows \ microsoft. Net \ framework \ v version \ aspnet_regiis.exe-I
The following is the description of the aspnet_regiis.exe parameter:
-I-install this version of ASP. NET, and update the script ing at the root of the IIS metadatabase and all script ing below the root. Upgrade existing versions of script ing to this version.
-Ir-install this version of ASP. NET and register it only. Script ing in IIS is not updated.
-When enable-with-I or-IR specifies-enable, ASP. NET is also enabled in the IIS security console (IIS 6.0 or later.
-S <path>-install the script ing of this version recursively in the specified path. Upgrade existing versions of script ing to this version. For example, aspnet_regiis.exe-s w3svc/1/root/sampleapp1
-Sn <path>-install the script ing of this version in a non-recursive manner in the specified path. Upgrade existing versions of script ing to this version.
-R-this version is the root location of the IIS metadata library and all script mappings below the root. Regardless of the current version, all existing script mappings are changed to this version.
-U-Uninstall this version of ASP. NET. Existing script ing to this version is remapped to the other top ASP. NET versions installed on this computer.
-UA-Uninstall all ASP. NET versions on the computer
-K <path>-recursively removes all ASP. NET versions from the specified pathScript ing.For example, aspnet_regiis.exe-K w3svc/1/root/sampleapp1
-Kn <path>-Remove all ASP. NET versions from the specified path in non-recursive modeScript ing.
-LV-list all installed on the computerASP. NET version (including status and installation path ).Status: valid [(Root)] | invalid
-Lk-list all paths of all IIS metadatabase items that contain ASP. NET script ing(Together with the version ). Do not show from parentInherits the ing of ASP. NET scripts.
-C-install this version of the client scriptIn the aspnet_client subdirectory of each IIS Site Directory.
-E-from the aspnet_client subdirectory of each IIS Site DirectoryRemove this version of the client script.
-Ea-from the aspnet_client subdirectory of each IIS Site DirectoryRemove all versions of the client script.
-? -Print the help text.