ASP. net iis registration tool

Source: Internet
Author: User

I have no IIS In the XP system. I installed vs2008 first, and then installed IIS. I deployed the published website to IIS and the Website Cannot run normally. I need to register IIS. net Framework, refer to the following steps.

1. In the "Visual Studio 2008 command prompt", enter aspnet_regiis-I to install the. NET Framework.

2. In the "Visual Studio 2008 command prompt", enter iisreset/noforce to restart the IIS service.

Iisreset reference:

D: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc> iisreset /?

Iisreset. EXE (c) Microsoft Corp. 1998-1999

Usage:
Iisreset [computername]

/Restart stop and restart all Internet services.
/Start all Internet services.
/Stop: Stop all Internet services.
/Reboot restarts the computer.
/Rebootonerror if an error occurs when the Internet service is started, stopped, or restarted,
Then restart the computer.
/Noforce: if an attempt to stop the service normally fails, the Internet service is not forcibly terminated.
/Timeout: Val specifies the timeout value (in seconds) for waiting for the Internet service to stop successfully ).
If you have specified the rebootonerror parameter, You can restart it after timeout.
Computer.
The default value of service restart is 20 seconds, and the value of stop is 60 seconds.
The restart time is 0 seconds.
/Status: displays the status of all Internet services.
/Enable Internet service restart on the local system.
/Disable the restart of Internet services on the local system.

The aspnet_regiis reference is as follows:

D: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc> aspnet_regiis /?
Install and uninstall ASP. NET Management Utility (2.0.50727) on your local computer ).
Copyright (c) Microsoft Corporation. All rights reserved.

-- ASP. NET registration option --

-I install ASP. NET of this version, and update the script ing at the root of the IIS metadatabase and
Script ing is available. Update the existing script ing of earlier versions to this version.

-IR: Install ASP. NET of this version and only register it. Do not update the script ing in IIS.

-IRU installs ASP. NET of this version. If there are any existing applicationsProgramIf ASP. NET is used
Script ing in the new IIS.

-After-I,-IR, or-R is used to specify-enable
Later) Enable
ASP. NET.

-After-I,-IR, or-R is used to specify-Disable
Or later ).
ASP. NET.

-S <path> installs the script ing of this version recursively in the specified path.
For example, aspnet_regiis.exe-s w3svc/1/root/sampleapp1

-Sn <path> installs the script ing of this version in a non-recursive manner in the specified path.

-R install ASP. net of this version and update IIS
The script ing at the root of the metabase is mapped to all scripts below the root. Regardless of the original version
Upgrade existing script ing to this version.

-U uninstall ASP. NET of this version. Remap the existing script ing of this version to the corresponding computer.
The most advanced version of other ASP. NET versions installed.

-UA uninstalls all versions of ASP. NET on the computer.

-K <path> recursively removes all script mappings of all ASP. NET versions from the specified path.
For example, aspnet_regiis.exe-K w3svc/1/root/sampleapp1

-Kn <path> Removes all script mappings of all versions of ASP. NET in non-recursive mode from the specified path.

-LV: list all versions of ASP. NET installed on the computer. The status and installation path are also listed.

-LK: list all paths (including versions) of all IIS metadatabase keys and ASP. NET script ing
These metadatabase keys are used. Those inherited from the parent key
The keys mapped by ASP. NET scripts are not displayed.

-C install client scripts of this version in the aspnet_client subdirectory of each IIS Site Directory
.

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

-Ea removes all versions of client scripts from the aspnet_client subdirectory of each IIS Site Directory
.

-Ga <user> grants permissions to the specified user or user group to access the IIS metadatabase and ASP. NET
Other directories used.

 

-- Configure encryption options --

-PE section encrypts the configuration section. Optional parameter:
[-prov provider] uses this provider for encryption.
[-app virtual-path]
encrypted in this virtual path. The virtual path must start with a forward slash. If the virtual path is "/",
indicates the root directory of the site. If-app is not specified,
Web. config in the root directory is encrypted.
[-site-name-or-id] indicates the site of the virtual path specified in-app. If not specified,
the default website is used.
[-location sub-path] Location sub-path.
[-PKM] encrypts/decrypts machine. config instead of Web. config.

-The PD section decrypts the configuration section. Optional parameters:
[-App virtual-path]
Decrypt the data in this virtual path. The virtual path must start with a forward slash. If the virtual path is "/",
Indicates the root directory of the site. If-app is not specified
Web. config for decryption.
[-Site-name-or-id] the site of the virtual path specified in-app. If not specified,
The default website will be used.
[-Location sub-path] Location sub-path.
[-PKM] encrypts/decrypts machine. config instead of Web. config.

-Wordpress Section web-app-physical-Dir
Encrypt the configuration section. Optional parameters:
[-Prov provider] uses this provider for encryption.

-PDF web-app-physical-Dir
Decrypts the configuration section.

-The PC Container creates an RSA key pair in containername. Optional parameters:
[-Size key-size] key-size. The default value is 1024.
[-PKU] is a user container rather than a computer container.
[-Exp] enable private key export.
[-CSP provider] The CSP provider to be used.

-The PZ container deletes containername. Optional parameters:
[-PKU] is a user container rather than a computer container.

-The PI container file imports an RSA key pair from the XML file. Optional parameters:
[-PKU] is a user container rather than a computer container.
[-Exp] Create an exported key.
[-CSP provider] The CSP provider to be used.

-The PX container file exports an RSA key pair to the XML file. Optional parameters:
[-PKU] is a user container rather than a computer container.
[-Pri] includes the private key.
[-CSP provider] The CSP provider to be used.

-The PA container account adds access to the account to the container. Parameters:
[-PKU] is a user container rather than a computer container.
[-CSP provider] The CSP provider to be used.
[-Full] add full access (read access by default ).

-The PR container account removes access to the account from the container. Parameters:
[-PKU] is a user container rather than a computer container.
[-CSP provider] The CSP provider to be used.

 

-- Configure remote access options --

-Config + enables remote access to the configuration.

-Config-Disable remote access to the configuration.

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.