IIS7.5 ASP files that configure custom suffixes cannot perform a solution that always prompts for a download _win server

Source: Internet
Author: User

The configuration on the IIS6 is simple. For example, I've customized the suffix of the ASP to. Do. only need to add corresponding handler mappings on IIS6
After you have copied the. asp configuration, create a new. Do, when configured, you can execute. Do not have a problem.

Now in the IIS7.5, how can I configure will not succeed.
Added handler mappings, and MIME was added. I really don't know how to be so troublesome after IIS upgrade.


Two days ago I also moved the site from IIS6.0 to IIS7.5, also found the landlord the same problem, share the solution.
------------------------------
1, install good IIS7.5;
2, publish the site, delete the original site root directory web.config files;
3, configure the site, such as ASP enable parent directory, ASP maximum request entity body limit, handler mapping ... Wait
4, the text editor opens a new web.config:

<?xml version= "1.0" encoding= "UTF-8"?>
<configuration>
  <system.webServer>
    < httperrors>
      <remove statuscode= "substatuscode="-1 "/> <error statuscode=
      " 500 " Prefixlanguagefilepath= "\inetpub\custerr" path= "500-100.asp" responsemode= "File"/>
     
 

(Note: In the verb verb column must be larger, requireaccess modified into a script mode that is "script", save the web.config after the restart site, finished)

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.