Win 2000 under the ASP.net development environment configuration _ practical skills

Source: Internet
Author: User

Win under asp.net the configuration

Win 2000 (including Professional,server and advanced Server) does not support ASP by default. NET. It must be configured for an environment.
Client SQL Server. NET data Provider Microsoft data Access Component (MDAC) 2.6 or later
Access to System Management information Windows Management Instrumentation (WMI) (installed with the Windows 2000 operating system)
COM + Services Windows Service Pack 2.0
Server SQL server. NET Data provider Microsoft data Access Component (MDAC) 2.7 or above, then install and restart once after installation.
asp.net Microsoft Internet Information Services (IIS) 5.0
And then download it again. NET Framework and the. NET Framework SDK are installed first. NET Framework reinstall the. NET Framework SDK two versions to be the same, now most of the 1.1 version, installed in the control Panel inside the management tool inside more than four things.

and IIS will change accordingly, as shown in the following illustration:


The following illustration is a more relevant ASP.net application mapping.

In particular, be sure to install IIS before installing other programs, or you will need to update the script map using Aspnet_regiis.exe.
The specific configuration is as follows:
To make it easier to reconfigure script mappings for ASP.net applications, each. NET Framework installation provides an associated version of the ASP.net IIS Registration tool (Aspnet_regiis.exe). Administrators can use this tool to remap the asp.net application to the ASP.net ISAPI version associated with this tool.
Note Because Aspnet_regiis.exe is linked to a specific version of the. NET Framework, the administrator must use the appropriate version of Aspnet_regiis.exe to reconfigure the script mappings for the ASP.net application. Aspnet_regiis.exe only configures the script mappings for the ASP.net application to the ASP.net ISAPI version associated with this tool.
This tool can also be used to display the status of all installed ASP.net versions, register associated asp.net versions, create client script directories, and perform other configuration actions.
Use Aspnet_regiis.exe to update a script map for a asp.net application
1 Open the Command window. (Click Start, click Run, type cmd, and then click OK.) )
2 Navigate to the Aspnet_regiis.exe version of the directory you want to use. 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\ version number
3 Use the Aspnet_regiis.exe-s or-SN option with the path to the application to set up the script map. The following shows a command-line example that updates a script map for an application named SampleApp1.
Aspnet_regiis.exe-s W3svc/1/root/sampleapp1
The following is a sample operation of the picture

Disabling script map Automatic Updates
To prevent all existing applications from being automatically remap to the version of the. NET Framework that you are installing, use the/noaspupgrade command-line option when you run Dotnetfx.exe setup. The entire command line is shown below.
DOTNETFX.EXE/C: "Install/noaspupgrade"
Uninstall a version of ASP.net
If you have more than one version of ASP.net installed on a single computer, you can uninstall a version separately. The usual way to uninstall asp.net is to uninstall the. NET Framework by using the Add or Remove Programs item in Control Panel. During the uninstall process, the installer uses the-u option (uninstall flag) to invoke the ASP.net IIS registration tool (Aspnet_regiis.exe).
Note If you simply want to uninstall a version of ASP.net without uninstalling the associated. NET Framework, you can use the associated version of the tool directly with each installation of the Aspnet_regiis.exe. NET Framework. If you uninstall ASP.net only, use the-u option of the tool version associated with the ASP.net version that you want to uninstall. For more information, see ASP.net IIS registration tool (Aspnet_regiis.exe).
The Aspnet_regiis.exe-u option performs the following actions:
All asp.net applications that are currently mapped to the ASP.net version to be uninstalled are remap to the latest compatible version on the computer. If a compatible version is not present, the script map for the application is completely removed.
Warning when you delete a script map, IIS submits the ASP.net page in text form. This may expose the source code to the client.
The ASP.net state service is shared by all compatible versions of ASP.net and is always mapped to the most recent version of ASP.net installed. If the asp.net version you want to uninstall is the latest version, the next compatible version on your computer will be registered to replace this version. If a compatible version is not present, the ASP.net state service is unloaded.
performance objects specific to the version to unload and associated performance counters will be deleted. General performance objects and counters that apply to all installed ASP.net, asp.net, and asp.net application versions are directed to the most recent installed version on the computer.
The ASPNET user account is shared by all compatible versions of ASP.net. If no other asp.net installation exists on the computer, the ASPNET user account and the associated access control list are deleted.
Script mapping for ASP.net applications
If more than one version of the. NET Framework is installed on the same computer, these installations each contain an associated asp.net ISAPI version. The asp.net application uses the ASP.net ISAPI to determine which version of the. NET Framework the application uses. The ASP.net application can be configured to use any version of the ASP.net ISAPI that is installed. To specify the ASP.net ISAPI version used by the ASP.net application, register the script map for the application in Internet Information Services (IIS).

The script map relates the file name extension and the HTTP predicate to the appropriate ISAPI in order to implement script processing. For example, if IIS receives a request for an. aspx file, the application's script map instructs IIS to send the requested file to the appropriate version of ASP.net ISAPI for processing. The script mappings for each ASP.net application are typically set in the Internet Information Services management console, either directly to an application or inherited from a parent application. By default, when the. NET Framework is installed, script mappings for all existing asp.net applications on the computer are automatically updated to use the ASP.net ISAPI version associated with this installation, unless the application uses a higher version or an incompatible version.
To make it easier to reconfigure script mappings for ASP.net applications, each. NET Framework installation provides an associated version of the ASP.net IIS Registration tool (Aspnet_regiis.exe). By default, the tool is installed in the following directory:
< system root >\microsoft.net\framework\〈 version number
Administrators can use this tool to remap the asp.net application to the ASP.net ISAPI version associated with this tool.
Note Because Aspnet_regiis.exe is associated with a specific version of the. NET Framework, the administrator must reconfigure the script mappings for the ASP.net application using the appropriate version of Aspnet_regiis.exe. Aspnet_regiis.exe only configures the script mappings for the ASP.net application to the ASP.net ISAPI version associated with this tool.
This tool can also be used to display the status of all installed ASP.net versions, register associated asp.net versions, create client script directories, and perform other configuration actions.
Here is a demonstration of a small asp.net operation process.
Create a example1.aspx, and then use Notepad to open the file in the input
Or
Here I want to explain two: 1, my sample files always have A and B are written in C # and VB, the demo of the picture on the use of C # that kind of, all the same, the tutorial inside the code is also write two separate, we can compare. 2, I write a tutorial when the use of Notepad to write aps.net you can also install vs.net to write but the start or use Notepad is better, because you can see a little more thorough.
The following is a picture to illustrate the process of the operation:






Believe that by this time you have a more comprehensive understanding of the Win2000 under ASP.net. Also can carry on some asp.net code debugging, starts with ASP.net to carry on the intimate contact. Also hope that you can use this to enhance the interest in asp.net, and then join us to learn asp.net team, together to enjoy the play by asp.net bring us fun.

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.