About ASP. NET Website deployment --- & quot; aspnet_client & quot; Folder

Source: Internet
Author: User
Tags website server

I uploaded files to the website server using Leapftp today and found that the root directory contains an extra "aspnet_client" folder for no reason. This is so careless. security first, I checked it online.

It turned out to be automatically generated by the program I used last time.

Installed.. net Framework. used to support.. net environment. the aspnet_client folder contains the system_web \ 2_0_50727 directory. this indicates your. the net framework version is 2.0.50727. If there is a file in system_web \ 2_0_50727, it is used.. net verification controls provide script support.

Therefore, do not be nervous when the webmaster finds that there is an extra "aspnet_client" folder under the root directory for no reason. have you used it recently.. net Environment Program. if not, be careful.

Some information about. net:

Details about the aspnet_regiis command.

Usage:

Aspnet_regiis.exe [-I [r] [-enable] |-u [a] |-r |-s [n] |-k [n] |-lv |-lk |- c |-e [a] |-?]

-I-install this version of ASP. NET, and update the script ing at the root of the IIS metadatabase and all script ing below the root. Upgrade existing versions of script ing to this version.

-Ir-install this version of ASP. NET and register it only. Script ing in IIS is not updated.

-When enable-with-I or-ir specifies-enable, ASP. NET is also enabled in the IIS security console (IIS6.0 or later.

-S-install the script ing of this version recursively in the specified path. Upgrade existing versions of script ing to this version.

For example, aspnet_regiis.exe-sW3SVC/1/ROOT/SampleApp1

-Sn-install the script ing of this version in a non-recursive manner in the specified path. Upgrade existing versions of script ing to this version.

-R-this version is the root location of the IIS metadata library and all script mappings below the root. Regardless of the current version, all existing script mappings are changed to this version.

-U-Uninstall this version of ASP. NET. Existing script ing to this version is remapped to the other top ASP. NET versions installed on this computer.

 

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

-K-recursively removes all script mappings to any ASP. NET version from the specified path.

For example, aspnet_regiis.exe-kW3SVC/1/ROOT/SampleApp1

-Kn-Remove all script ing to any ASP. NET version in non-recursive mode from the specified path.

 

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

-Lk-list all paths (along with versions) of all IIS metadatabase items mapped by ASP. NET scripts ). The ing of ASP. NET scripts inherited from the parent item is not displayed.

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

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

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

-? -Print the help text.

Example:

When the system creates an asp. netweb application, the following error message is displayed:

"Visual Studio. NET has detected that the specified Web server is not running ASP. NET, and you will not be able to run ASP. NET applications or services. "

You can try to run

Aspnet_regiis-i

Aspnet_regiis-r

Two commands are used to install the asp.net Service Manager.

If the problem persists, try the following operations:

1. First determine if it is 1.1

2. Set "ip address" to all unallocated

3. Check if the local address is not used as the proxy server in the IE connection settings.

Link: http://3hao.banzhu.net/article/3hao-43-844663.html

 

========================================================== ============================

Use aspnet_regiis.exe to register. NET Framework

After you reinstall iis, use aspnet_regiis.exe to register the. NET Framework, as shown below:

C: \ WINDOWS \ Microsoft. NET \ Framework \ v1.1.4322 \ aspnet_regiis.exe-I

If multiple versions of. NET Framework are installed on the machine, you can use aspnet_regiis.exe to specify the. net framework version used by an asp.net application, as shown below:
C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.507 \ aspnet_regiis.exe.

IIS, re-register
In % SystemRoot % \ Microsoft. NET \ Framework \ version \
Run
Aspnet_regiis-I

"Version: for example, v2.0.507 』

========================================================== ==========================================
To fix IIS ing for ASP. NET, follow these steps:
Run the Aspnet_regiis.exe utility:
Click Start, and then click Run ".
In the open text box, type cmd and press ENTER.
Type the following command at the command prompt and press ENTER:
"% Windir % \ Microsoft. NET \ Framework \ version \ aspnet_regiis.exe"-I

In this path, the version indicates the. NET Framework installed on the server.
. When you type this command, you must replace this placeholder with the actual version number.
Register Aspnet_isapi.dll:
Click Start, and then click Run ".
In the open text box, type the following command and press ENTER:
Regsvr32 % windir % \ Microsoft. NET \ Framework \ version \ aspnet_isapi.dll

Regsvr32 returns the registration result


From Hurry's column

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.