Keywords: application extension, wildcard application ing

Source: Internet
Author: User
In IIS 6.0, there are two settings that have always puzzled me. Although they have been used in projects, I always feel that I have a vague understanding of them, that is, "application ". Program Extension and wildcard application ing ".

A few days ago, using the gap between projects, I checked some information on the Internet, combined with the applications in my project, I had some preliminary understanding of these two settings, and now I have sorted them out, discuss with you:

  1. In "application extension", you can set the request processing method for a specific extension, for example. aspx ,. ascx ,. asmx ,. ashx is set to "C: \ WINDOWS \ microsoft.net \ framework \ v2.0.50727 \ aspnet_isapi.dll. You can add a new extension, such as. Happy, to c: \ windows \ microsoft.net \ framework \ v2.0.50727 \ aspnet_isapi.dll.
  2. In "application extension", when adding a new ing, the extension name column cannot be entered directly. * ", but can only be filled in the form of". specific extensions such as aspx, which are useful for "wildcard application ing. Insert a "wildcard application ing". For example, if you insert "c: \ windows \ microsoft.net \ framework \ v2.0.50727 \ aspnet_isapi.dll", all requests with extension names are forwarded by "C: \ windows \ microsoft.net \ framework \ v2.0.50727 \ aspnet_isapi.dll.
  3. when we add corresponding. happy extension ing, or simply adding "wildcard application ing", directly enter "http: // localhost/webapplication1/haha" in the address bar. "Happy" still reports an error because "C: \ WINDOWS \ microsoft.net \ framework \ v2.0.50727 \ aspnet_isapi.dll" is not provided by default. happy request processing, so we still need. the config file is added for processing. the handler of the happy request, for example:

    of course, Specifically, the webapplication1.myhandler class needs to be written by ourselves. You can implement the ihttphandler interface.

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.