How to use the aspnet_regiis. exe command

  • 2021-07-24 10:38:35
  • OfStack

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe

aspnet_regiis.exe [-i[r] [-enable] | -u[a] | -r | -s[n] < path > | -k[n] < path > | -lv | -lk | -c | -e[a] | -?]

-i-Install this version of ASP. NET and update the script mappings at the root of the IIS metabase and all script mappings below the root. Upgrade existing lower version script mappings to this version.

Explanation: Use "aspnet_regiis. exe-i" command to reinstall ASP. NET, if ASP. NET has any problems, 1 can be solved with this command.

-ir-Install this version of ASP. NET, register only. Script mappings in IIS are not updated.

-enable-When-enable is specified with-i or-ir, ASP. NET is also enabled in the IIS security console (IIS 6.0 or later).

-s < path > -Installs this version of the script map recursively on the specified path. Upgrade existing lower version script mappings to this version.

For example, aspnet_regiis. exe-s W3SVC/1/ROOT/SampleApp1

-sn < path > -Installs this version of script mapping in a non-recursive manner on the specified path. Upgrade existing lower version script mappings to this version.

-r-Installs script mappings for this version of the IIS metabase root location and for all script mappings below the root. No matter what the current version is, all existing script mappings are changed to this version.

-u-Uninstall this version of ASP. NET. Existing script mappings to this version are remapped to the remaining maximum ASP. NET versions installed on this computer.

-ua-Uninstall all ASP. NET versions on your computer.

-k < path > -Recursively removes all script mappings to any version of ASP. NET from the specified path.

For example, aspnet_regiis. exe-k W3SVC/1/ROOT/SampleApp1

-kn < path > -Non-recursively removes all script mappings to any version of ASP. NET from the specified path.

-lv-Lists all ASP. NET versions installed on your computer (including status and installation path).
Status: Valid[ (Root)]|Invalid

-lk-Lists all paths (with version 1 onwards) of all IIS metabase entries that contain the ASP. NET script mapping. Items that inherit ASP. NET script mappings from parent items are not displayed.

-c-Install this version of the client script into the aspnet_client subdirectory of each IIS site directory.

Note: Use the command "aspnet_regiis. exe-c" if prompted for missing js script file.

-e-Remove this version of client script from the aspnet_client subdirectory of each IIS site directory.

-ea-Removes all versions of client script from the aspnet_client subdirectory of each IIS site directory.

-? -Print this help text.


Related articles: