Iis7.5 (Classic/Integrated), IIS6, and Asp.net 4.0 configure URL ing (Asp.net MVC)

Source: Internet
Author: User

Take adding a ing of "*" as an example.

In iis7.5 integration mode, there will be no problems.
 

 

Configure new URL ing in iis7.5 Classic Mode

First, make sure that yourProgramThe pool selects the Asp.net 4.0 framework.
 
Request Path :*
 
32-bit add new ing execution file path: C:/Windows/Microsoft. NET/framework/v4.0.30319/aspnet_isapi.dll
 
64-bit add new ing execution file path: C:/Windows/Microsoft. NET/framework64/v4.0.30319/aspnet_isapi.dll
 
Request restrictions:
 
1. "handler called only when requests are mapped to the following content on the ing tab". This check box is not used.
 
2. "Predicate", select "one of the following predicates", and fill in "Get, Head, post, debug".
 
3. "access", "specify the access permissions required by the handler", and select "script".

When adding a new ing to Asp.net 4.0, you must set the path of the execution file (% WINDIR %/Microsoft. net/framework/v2.0.50727/aspnet_isapi.dll "*. MVC "cannot take effect, it is really depressing for a while.

When Asp.net MVC without a suffix is configured in iis7.5 Classic mode, you can add wildcards. Note that the execution file path is the same as above.

Configure a new URL ing under IIS6

Make sure that. Net 4.0 is selected for Asp.net.
If the CSS cannot display a normal style, select "NONE" as the permission in the ing"
Click "configuration" in "main directory". The ing configuration is the same as above. Note that the "check whether the file exists" at the bottom of the ing editing tab should not be checked.
 
In "extension", set Asp.net 4.0 to "allowed ".
 
ASP. NET 4.0 websites must use their own "program pool", and must not be mixed with the pool of ASP. NET 2.0.
 
When Asp.net MVC without a suffix is configured, you can add wildcards. Note that the execution file path is the same as above.
 
No special requirements. Delete All wildcards.

Check the information. In Asp.net 4.0, validaterequest = false will expire. In the configuration file, add  

 

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.