How to register ASP. NET with IIS?

Source: Internet
Author: User
ASP. net iis registration tool (aspnet_regiis.exe)

When multiple tasks are executed concurrently on a computer. net Framework, which is mapped to ASP. NET application ASP. the. net isapi version determines the version of the Common Language Runtime library used by the application. ASP. net iis registration tool (aspnet_regiis.exe) Allows administrators or installers to conveniently update script ing of ASP. NET applications so that they point to the ASP. net isapi version associated with the tool. The tool can also be used to display the status of all installed ASP. NET versions, register ASP. NET versions coupled with the tool, create client script directories, and perform other configuration operations.

Aspnet_regiis [options]

You can specify one or more options.

Option Description
-C Install ASP. NET client scripts (such as client verification scripts) in the aspnet_client subdirectory of each IIS Site Directory.
Note:Only the ASP. NET client scripts associated with aspnet_regiis.exe are installed.

-E Remove ASP. NET client scripts from the aspnet_client subdirectory of each IIS Site Directory.
Note:Only remove ASP. NET client scripts associated with aspnet_regiis.exe.

-Ea Remove all ASP. NET client scripts from the aspnet_client subdirectory of each IIS Site Directory.
-I Install the ASP. NET version associated with aspnet_regiis.exe, and update the script ing between the IIS metadata library root directory and the root directory.
Note:Update only the script ing of applications that use the early ASP. NET version. New applications are not affected.

-IR Install the ASP. Net version associated with aspnet_regiis.exe and register ASP. NET only in IIS.
Note:This option does not update the script ing. To install ASP. NET and update script ing, use -I.

-K Path Remove all ASP. Net version script mappings from all ASP. NET applications in the specified application root path and Its subdirectories.
-Kn Path Only remove all ASP. NET version script mappings from ASP. NET applications in the specified application root path.
Note:This option does not affect PathApplication in the subdirectory.

-LK Lists the paths and versions of all IIS metadatabase items that contain ASP. NET script ing.
Note:The ing of ASP. NET scripts inherited from the parent item is not displayed.

-LV Lists the status and installation path of all ASP. NET versions installed on your computer.
-R Update the ing of all scripts in and below the IIS metadatabase to point to the ASP. net isapi version associated with aspnet_regiis.exe.
Note:All existing script mappings are updated to point to the ASP. net isapi version associated with aspnet_regiis.exe (not related to the current version ).

-S Path Install the script pointing to the ASP. net isapi version associated with aspnet_regiis.exe to the specified application root path and all ASP. NET applications in its subdirectories. Update all existing script ing using the earlier ASP. net isapi version in the specified path and below.
-Sn Path Install the script pointing to the ASP. net isapi version associated with aspnet_regiis.exe to the ASP. NET application under the specified application root path. Update all existing script mappings using earlier ASP. net isapi versions in the specified path.
Note:This option does not affect PathApplication in the subdirectory.

-U Uninstall ASP. NET associated with aspnet_regiis.exe from your computer. The current script ing of this ASP. net isapi version is automatically remapped to the highest version of other installed ASP. net isapi versions.
-UA Uninstall all ASP. NET versions from your computer.
-? Displays the command syntax and options of this tool.
Remarks

When multiple ASP. NET versions are installed on a computer, ASP. NET runs concurrently. During installation, Internet Information Service (IIS) needs to know which ASP. net isapi (aspnet_isapi.dll) version should process pages in ASP. NET applications. The version of the ASP. net isapi associated with the ASP. NET application determines the version of the Common Language Runtime library used by the application. In IIS, ASP. NET applications are associated with ASP. net isapi versions through script ing. To simplify the configuration process of ASP. NET applications, each ASP. NET version has a linked aspnet_regiis.exe version.

Note:Each. NET Framework Version comes with a unique aspnet_regiis.exe version. Since each version of the tool only applies to the. NET Framework Version associated with it, you must use the correct version of the tool to configure ASP. NET applications.

Aspnet_regiis.exe usually corresponds-SOr-SnTo re-map ASP. NET applications to the. NET Framework Version associated with the tool. Use-SOption to update the application in the specified root path and all its subdirectories. If you do not want to update the application in the subdirectory, use-Sn. To update the script ing of all existing ASP. NET applications on the computer at the same time, use-R.

Note:PathThe parameter references the root path of the application, not the physical path. For example,W3SVC/1/ROOT/SampleApp1.

By using-KOr-KnYou can use this tool to remove any ASP. NET version script ing from the application.

Note:If the specified root path inherits its script ing from the parent root path-KAnd-KnThe option is invalid.

This tool can also be used to install and uninstall the ASP. NET version of the link. Use-IYou can install ASP. NET and update script ing for all existing ASP. NET applications. Use-IRYou can install ASP. NET without updating the script ing. To uninstall the ASP. NET version associated with the tool, use-U. To uninstall all ASP. NET versions from your computer, use-UA.

You can use aspnet_regiis.exe to view ASP. NET information. To list the status and installation path of all installed ASP. NET versions, use-LV. To view the paths of all IIS metadatabase items mapped to ASP. NET, use-LK.

You can use aspnet_regiis.exe to install and remove client scripts, such as client verification. To install the ASP. NET client script associated with this tool to the aspnet_client subdirectory of each IIS Site Directory, use-C. To remove only the ASP. NET client scripts associated with the tool, use-E. To remove all installed ASP. NET client scripts, use-Ea.

For more information about parallel execution in ASP. NET, see side-by-side support in ASP. NET. For more information about script ing and application root path, see IIS documentation (http: // localhost/IISHelp ). Note: You must install IIs before you can view the IIS documentation.

Example

The following command maps the ASP. NET script associated with aspnet_regiis.exe to the sampleapp1 application and all its subapplications.

Aspnet_regiis -s W3SVC/1/ROOT/SampleApp1

The following command only updates the script ing of the sampleapp1 application without affecting the application in the subdirectory.

Aspnet_regiis -sn W3SVC/1/ROOT/SampleApp1

The following command installs the ASP. Net version associated with the tool and updates the script ing of all existing ASP. NET applications. Note: Only applications mapped to earlier ASP. NET versions are affected.

Aspnet_regiis -i

The following command installs the ASP. NET version associated with the tool, but does not update the script ing of the existing ASP. NET application.

Aspnet_regiis -ir

The following command displays the status and installation path of all ASP. NET versions installed on the computer.

Aspnet_regiis -lv

 

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.