Re-register the. NET Framework 2.0 command and Parameter Details on IIS,. netframework

Source: Internet
Author: User

Re-register the. NET Framework 2.0 command and Parameter Details on IIS,. netframework

We may sometimes need to re-register. Net to IIS. You can use the following command line to operate.
If you have already installed IIS on your computer and then installed. net during installation,. net will automatically help you register. Otherwise, you need to register.
Open the program-run-cmd: Enter the command to re-register IIS
Copy codeThe Code is as follows: C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ aspnet_regiis.exe-I
After successful registration, you can see in IIS:

The following is the description of the aspnet_regiis.exe parameter:

-I-install this version of ASP. NET and update
Script ing and all
Script ing. Existing low version script ing
Upgrade to this version.

-Ir-install this version of ASP. NET and register it only. No
Update the script ing in IIS.

-Enable-with-I or-ir specifies-enable
Enable ASP. NET in the IIS security console (IIS 6.0 or later.

-S-install this version recursively in the specified path
. Existing low version script ing
Upgrade to this version.
For example
Copy codeThe Code is as follows: aspnet_regiis.exe-s W3SVC/1/ROOT/SampleApp1

-Sn-install this version in a non-recursive manner in the specified path
Script ing. Existing low version script ing
Upgrade to this version.

-R-this version is the root location of the IIS metadata Library
And all scripts below the root are mapped to the installation script ing. No matter what the current version is,
All existing script mappings are
Change to this version.

-U-Uninstall this version of ASP. NET. To this version
Existing script ing is remapped to
Other top ASP. NET versions.

-Ua-Uninstall all ASP. NET versions on the computer

-K-recursively remove all ASP. NET versions from the specified path
Script ing.
For example
Copy codeThe Code is as follows: aspnet_regiis.exe-k W3SVC/1/ROOT/SampleApp1

-Kn-Remove all ASP. NET versions from the specified path in non-recursive mode
Script ing.

-Lv-list all installed on the computer

ASP. 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 parent
Inherits the ing of ASP. NET scripts.

-C-install this version of the client script
In the aspnet_client subdirectory of each IIS Site Directory.

-E-from the aspnet_client subdirectory of each IIS Site Directory
Remove this version of the client script.

-Ea-from the aspnet_client subdirectory of each IIS Site Directory
Remove all versions of the client script.

-? -Print the help text.


How can I register net20 and net40 for iis again?

1. Open the program net2.0-run-cmd: Enter the command to re-register IISC: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ aspnet_regiis.exe-I 1. Run C: \ WINNT \ MICROSOFT. NET \ FRAMEWORK \ V version \ ASPNET_REGIIS.EXE-I. Start-Program-Microsoft Visual Studio 2008-Visual Studio Tools-Visual Studio 2008 command prompt and then enter aspnet_regiis.exe-I OK 100% to solve 2 .. net4.0C: \ Users \ Administratorcd C: \ Windows \ Microsoft. NET \ Framework \ v4.0.30319C: \ Windows \ Microsoft. NET \ Framework \ v4.0.30319aspnet_regiis.exe-I

What command is used in aspnet to reconfigure IIS?

First go to System Disk
C: \ Windows \ Microsoft. NET \ Framework \ v2.0.50727
Then execute
Aspnet_regiis-I
And then reconfigure iis.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.