Analysis on the nature and connection of iis asp. NET

Source: Internet
Author: User

What is the nature and connection of iis asp. NET? First, let's see what ASP is. NET, ASP. NET is a good framework for compiling WEB applications and components, but it seems impossible for many people to understand every detail of it because of its scalability, I have always thought it is necessary to understand the working principles of the grass-roots structure to achieve higher performance during design. In the next series of articles, I will describe the WEB lifecycle, when the request is accepted by the server, it is transmitted to ASP.. NET (for example, HTML.

Introduction to ASP. NET in the nature and connection of iis asp. NET

Microsoft Active Server Pages (Microsoft Dynamic Web Service), also known as ASP, was first released at the end of 1996, provides programmers with a framework to build a rich and complex WEB application. Several years later, his infrastructure development has improved a lot, that is, the ASP. NET. ASP. NET is a framework used to component WEB applications. That is to say, it must run on WEB Services, generally, the browser sends different types of resource requests to the WEB server. When dynamic server resource generation technologies (such as CGI, PHP, JSP, and ASP) emerge, all WEB services can only accept static resource requests from the customer service end and send them back to the customer service end.

On the surface, the interaction between the server and the client is very simple. The session is performed through the HTTP protocol. It is established on both TCP and IP protocols (used to exchange data between two network endpoints connected to different types, as we know about WWW World Wide Web) application-level protocol.

Essentially, any dynamic server technology needs to run on a specific WEB service. Similarly, ASP.net works closely with Microsoft Internet Information Service, also known as IIS.

Select different methods for different services to generate dynamic resources... We will explain how IIS achieves this when a request information arrives at the server and finally returns it to the client.

Nature and connection of iis asp. net iis and ISAPI extension

As mentioned above, static resources do not need to be processed by the server; once such resource requests arrive at the server, the server only needs to find its content from the file system and send it to the client in byte stream form through HTTP protocol. Static resources can be images, javascript, CSS, or common HTML pages. Obviously, the server needs to know how to differentiate static and dynamic resources, and how dynamic resources need to be processed rather than directly sent back to the client. As a result, the ISAPI extension is introduced. ISAPI is an interface for programming Internet service applications. ISAPI is executed as a module. For example, early Win32.dll. IIS relies on ISAPI to process specific resources. By ing ISAPI extensions and files through IIS, each file extension type is associated with a specific ISAPI extension, that is, when a request for a file arrives, IIS processes the request and transfers it to the corresponding ISAPI extension to confirm that the request can be processed.

 

Figure 1: configure the ISAPI extension ing in IIS5.0

ISAPI extensions obviously need to conform to a common interface so that they can be called by IIS and provide necessary data to process requests and generate replies.

1 ,. ASP extension is mapped to asp. dll ISAPI extension. During the ASP processing period, this component is responsible for executing all required tasks to generate a send-back request. That is, by collecting request information and making it available on the ASP page, other ASP internal objects, parse and execute ASP pages, and finally return results in HTML format.

Although this is a great improvement over CGI technology, ASP.net is more powerful.

Install ASP. NET, ASP. NET configure IIS to put ASP.. NET specified file requests are redirected to a new ISAPI extension aspnet_isapi.dll. this extension is somewhat different from the previous asp. dll extension.

Table I: aspnet_isapi.dll ing in IIS applications

ExtensionResource Type

. AsaxASP. NET application files. Commonly Used global. asax.

. AscxASP. NET user control file.

. AshxHTTP handlers, the managed counterpart of ISAPI extensions.

. AsmxASP. NET web services.

. AspxASP. NET web pages.

. AxdASP. NET internal HTTP handlers.

In addition to the file extensions listed in Table 1, ASP. NETISAPI extensions also manage other file extension types that are not typically accessible to browsers, such as Visual Studio project files, resource files, and configuration files.

The nature and connection of iis asp. NET will be introduced here. We will also discuss the learning of iis asp. NET in other articles.

  1. Procedure for ASP. NET to obtain MAC addresses and IP addresses
  2. Analysis on Static Page implementation using ASP. NET
  3. Analysis of ASP. NET connection string Traversal
  4. Analysis on the types and features of ASP. NET Cache
  5. Three methods of ASP. NET page Jump

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.