Register a script ing for an ASP. NET application for IIS

Source: Internet
Author: User
 

[% Repeat_0 match = "/data/option" %]
[% = @ Title %] [% = @ Count %] ticket [[% = @ percent %] [% _ repeat_0 %]
Operating Environment
Windows XP SP2
IIS: v5.1
. NET Framework: v1.1.4322

If the. NET Framework is installed first and then IIS is installed, there will be no ASP. Net Program ing in the application script ing of IIS. If you add them manually, it is too much trouble. Fortunately. net Framework provides the automatic registration tool aspnet_regiis.exe, which is located at % system root % \ Microsoft. net \ framework \ versionnumber, for example, in c: \ windows \ Microsoft. net \ framework \ v1.1.4322.

At the CMD prompt, check the help:

C: \ windows \ Microsoft. NET \ framework \ v1.1.4322> aspnet_regiis.exe -?
Management utility for installing and uninstalling multiple ASP. NET versions on a single computer (1.1.4322.0)
Copyright (c) Microsoft Corporation 1998-2002. All rights reserved.
Usage:
Aspnet_regiis.exe [-I [r] [-enable] |-U [a] |-r |-s [N] <path> |-K [N] <path
> |-LV |-LK |-c |-E [a] |-?]

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

Okay, it's-I:

C: \ windows \ Microsoft. NET \ framework \ v1.1.4322> aspnet_regiis.exe-I
Start installing ASP. NET (1.1.4322.0 ).
ASP. NET (1.1.4322.0) has been installed ).

Registered successfully! Then open the IIS Manager-default website-properties-home directory-(application settings) configuration- ing to register many c: \ windows \ Microsoft. the file type of the extension parsed by net \ framework \ v1.1.4322 \ aspnet_isapi.dll.

Then open your ASP. NET web page, it won't be the source code ....!!

**************************************** **************************************

Http://msdn2.microsoft.com/zh-cn/library/1kdfe21k.aspx

ASP. NET
How to: Configure ASP. NET Applications for ASP. NET

By default, when. NET Framework is installed on a computer that has a Runtime Library installed, all ASP. NET applications are automatically updated to use the newly installed. NET Framework version. The only exception is those applications bound to incompatible Runtime Library versions or newer Runtime Library versions. (The compatibility is usually determined by the. NET Framework version number. Different major versions are usually incompatible, and different minor updates and internal versions are compatible .) Although a later version of. NET framework is designed to be backward compatible, you may still need to configure ASP. NET Applications to use a specific version of the Runtime Library.

Install multiple versions in management. net Framework, view ASP.. NET application script ing (sometimes called Application ing) to determine the version used by the application is usually useful. You can use the Internet Information Service (IIS) console to view the script ing of ASP. NET applications.

View Script ing of ASP. NET Applications
Open the IIS console.

Expand the Local Computer node, expand "website", and then expand "Default web server" [Default web server].

Right-click the application folder and click Properties ".

On the "directory" tab, click "Configure ".

The "application configuration" dialog box appears.

On the ing tab, select the ASP. NET application extension, such as. asmx or. aspx.

The "executable file path" column in the dialog box lists the ASP. net isapi extension paths used by the application. By default, ASP. net isapi extensions are installed in the following locations:

% System root % \ Microsoft. NET \ framework \ versionnumber

The version number displayed in the path indicates the ASP. net isapi extension version used by the application. In turn, the version of ASP. net isapi extension determines the version of the Runtime library used by the application.

Configure the application to use script ing
To make it easier to reconfigure script ing for ASP. NET applications, each. NET Framework installation provides its own version of ASP. net iis registration tool (aspnet_regiis.exe ). Users with administrator privileges on the Web server computer can use this tool to re-map ASP. NET Applications to ASP. net isapi extension versions that match the tool.

Note:
Because the aspnet_regiis.exe tool is associated with a specific version of the. NET Framework, you must use the appropriate version of aspnet_regiis.exe to reconfigure script ing for ASP. NET applications. The aspnet_regiis.exe tool reconfigured the script ing of ASP. NET Applications to match the extended version of ASP. net isapi of the tool.

This tool can also be used to display the status of all installed ASP. NET versions, register the associated ASP. NET versions, create client script directories, and perform other configuration operations.

Use aspnet_regiis.exe to update the script ing of an ASP. NET application
Open the windows command window.

Locate the directory that contains the version of the aspnet_regiis.exe tool to be used. Remember that each version of the. NET Framework has its own version. Files are usually located in the following directory:

% System root % \ Microsoft. NET \ framework \ versionnumber

Run the aspnet_regiis.exe tool using the-S or-Sn option and Application Path.

The following example demonstrates a command that updates the script ing of an application named sampleapp1:

Aspnet_regiis.exe-s w3svc/1/root/sampleapp1

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.