Unable to open the Asp.net website after IIS is reinstalled

Source: Internet
Author: User

If it is. net3.5

Run

C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis.exe-I

 

Refer:

 

ASP. net iis registration tool (aspnet_regiis.exe)

 

Execute multiple tasks in parallel on a computer. net Framework, which is mapped to ASP. NET application ASP. the net ISAPI version determines the Common Language Runtime Library (CLR) version used by the application. Use ASP. net IIS registration tool (aspnet_regiis.exe), the Administrator or installer can easily update ASP.. NET application script ing to point to the ASP.. Net ISAPI version. This tool can also be used to display the status of all installed ASP. NET versions, register ASP. NET versions coupled with this tool, create client script directories, and perform other configuration operations.

Note:

. NET Framework comes with two IIS registration tools; one for standard systems and the other for 64-bit systems. The tool for 64-bit systems is located in the framework64 directory of the Microsoft. NET directory under the Windows folder. For example, c: \ windows \ microsoft. Net \ framework64 \ v2.0.50727 will contain the IIS registration tool.

aspnet_regiis [options]
Option

Option Description

-C

Install ASP. NET client scripts (such as client verification scripts) in the aspnet_client subdirectory of each Internet Information Service (IIS) site directory.

Only the ASP. NET client scripts associated with aspnet_regiis.exe are installed.

-Disable

Disable ASP. NET in the IIS security console.

This option can only be used-I,-IROr-ROption. This option cannot be used in IIS versions earlier than IIS 6.0.

-E

Remove ASP. NET client scripts from the aspnet_client subdirectory of each IIS Site Directory.

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.

-Enable

Enable ASP. NET in the IIS security console.

This option can only be used-I,-IROr-ROption. This option cannot be used before IIS 6.0 or before ASP. NET 2.0.

-Ga User

Grant the specified user access permissions to the IIS metadatabase used by ASP. NET and other directories.

This option cannot be used in versions earlier than ASP. NET 2.0.

-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.

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.

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.

This option does not affect the specifiedPath.

-LK

Lists the paths and versions of all IIS metadatabase items that contain ASP. NET script ing.

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.

-Norestart

Do not restart the IIS auxiliary process after installing or updating ASP. NET script ing.

If you will manually restart the IIS auxiliary process-IOr-ROption.

-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.

Regardless of the current version, all existing script mappings are updated to point to the ASP. net isapi version associated with the ASP. net iis registration tool.

-S Path

Install the script ing (which points to the ASP. net isapi version associated with aspnet_regiis.exe) to all ASP. NET applications under the specified application root path and Its subdirectories. Update all existing script ing using the earlier ASP. net isapi version in the specified path and below.

-Sn Path

Install script ing (the script ing points to the ASP. net isapi version associated with the tool) in 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.

This option does not affectPath.

-U

Uninstall the ASP. NET version associated with the ASP. net iis registration tool from your computer. The existing script ing of this ASP. net isapi version is automatically remapped to the latest version of other installed ASP. NET isapis.

-UA

Uninstall all ASP. NET versions from your computer.

-?

Displays the command syntax and options of the ASP. net iis registration tool.

Configuration Options
Option Description

-Config +

Allow Remote Access to ASP. NET configurations on the computer.

-Config-

Remote Access to ASP. NET configurations on the computer is prohibited.

-Pa Container account

Specifies a user or groupAccountGrant access to a specified itemContainer. This parameter uses the following optional modifier:

  • -PKUReplace the default computer container with the container specified by the user.

  • -CSP ProviderSpecify the container provider to use.

  • -FullSpecify that you should add full access permissions instead of default read-only access permissions.

-PC Container

Create an RSA public/private key pair in the specified container. This parameter uses the following optional modifier:

  • -Size KeysizeSpecify the key size. The default value is 1024 bytes.

  • -PKUReplace the default key container on the computer with the container specified by the user.

  • -ExpSpecifies the private key that must be exported.

  • -CSP ProviderSpecify the container provider to use.

-Pd Section

Decrypts the configuration section. This parameter uses the following optional parameters:

  • -App VirtualpathSpecifies that decryption should be performed at the level of the included path.

  • -Location SubpathSpecify the subdirectory to decrypt.

  • -PKMSpecify that the machine. config file instead of the web. config file should be decrypted.

-PDF Section webapplicationdirectory

Decrypts the specified configuration section of the web. config file in the specified physical (non-virtual) directory.

-PE Section

Encrypts the specified configuration section. This parameter uses the following optional modifier:

  • -Prov ProviderSpecifies the encryption provider to use.

  • -App VirtualpathSpecifies that encryption should be performed at the included path level.

  • -Location SubpathSpecify the subdirectory to be encrypted.

  • -PKMSpecify that the machine. config file should be encrypted instead of the web. config file.

-Wordpress Section webapplicationdirectory

Encrypts the specified configuration section of the web. config file in the specified physical (non-virtual) directory.

-Pi Container File

Extract the RSA public/private key pair from the specified XMLFileImport the specifiedContainer. This parameter uses the following optional modifier:

  • -PKUReplace the default computer container with the container specified by the user.

  • -ExpSpecifies that the private key can be exported.

  • -CSP ProviderSpecify the container provider to use.

-Pr Container account

Remove a specified user or groupAccountFor the specified itemContainer. This parameter uses the following optional modifier:

  • -PKUReplace the default computer container with the container specified by the user.

  • -CSP ProviderSpecify the container provider to use.

-Px Container File

Import the RSA public/private key pair from the specified container to the specified XML file. This parameter uses the following optional modifier:

  • -PKUReplace the default computer container with the container specified by the user.

  • -CSP ProviderSpecify the container provider to use.

-PZ Container

Deletes the specified key container. This parameter uses the following optional modifier:

  • -PKUReplace the default computer container with the container specified by the user.

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 ASP. net isapi version associated with the ASP. NET application determines the CLR version 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. Because each version of the tool applies only to the. NET Framework Version associated with it, you must use the correct version of the tool to configure ASP. NET applications.

ASP. net iis registration tool-SOr-SnOptions to re-map ASP. NET applications to the. NET Framework Version associated with the application. Use-STo update the application in the specified root path and all its subdirectories. Use-Sn. To update the script ing of all existing ASP. NET applications on the computer at the same time, use-R.

Reference: http://msdn.microsoft.com/zh-cn/library/k6h9cz8h%28VS.80%29.aspx

 

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.