Workaround for the detected ASP. NET settings that are not applicable in integrated managed pipeline mode (GO)

Source: Internet
Author: User

We ported the ASP. IIS6 to IIS7, which may be run with the following error:

  HTTP Error 500.23-internal Server error

  An ASP. NET setting was detected that is not applicable in integrated managed pipeline mode.

  Why does the above error occur?

There are two modes of application pool in IIS7, one is "Integrated mode" and one is "Classic mode".

Classic mode is the way we used to be in IIS 6.

If you are using Integrated mode, you will need to change the configuration files for your custom httpmodules and httphandlers to transfer them to <modules> and

  Two workarounds:

The first method, configure the application pool

Configure the application pool on IIS7 and change the schema of the program pool to "classic", after which everything is fine.

The second method, modify the Web. config configuration file

For example, originally set

<system.web> .......    

When the IIS7 application pool is "Integrated mode", change to

<system.web>    ...........</system.web><system.webserver>    <modules>      <add Name= "MyModule" type= "Myapp.mymodule"/>          </modules>    

If you want to keep the original settings, you can set the Disable Authentication integration mode (validateintegratemodeconfiguration= "false"), which will not cause an error.

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.