When the ASP. NET program is ported from IIS6 to IIS7, the error 500.22 is returned. iis7500.22

Source: Internet
Author: User

When the ASP. NET program is ported from IIS6 to IIS7, the error 500.22 is returned. iis7500.22

The most likely cause is:
• This application defines the configuration in the system. web/httpModules section.
Possible operations:
• Migrate configurations to the system. webServer/modules section. You can also do this manually or by using AppCmd in the command line-for example, % SystemRoot % \ system32 \ inetsrv \ appcmd migrate config "Default Web Site /". Migrating an application using AppCmd will enable it to work in integrated mode and continue to work in Classic mode and earlier versions of IIS.
• If you are sure you can ignore this error, you can disable it by setting system. webServer/validation @ validateIntegratedModeConfiguration to false.
• You can also switch an application to an application pool in Classic Mode-for example, % SystemRoot % \ system32 \ inetsrv \ appcmd set app "Default Web Site/"/applicationPool: "Classic. NET AppPool ". This is done only when the application cannot be migrated.
(Set "Default Web Site" and "Classic. NET AppPool" to your application path and application pool name)
The connection and more information integration mode is the preferred mode for running ASP. NET Applications on IIS 7.0.

 

{The application pool of IIS is divided into two types based on the managed pipeline mode: integration and classic.

Integration. in the. NET mode, the application should not be in the <system. in the web>/

The classic. NET mode is the way we used to use IIS 6, without the above restrictions .}

Solution:

Method 1 configure the application pool on IIS7.

Method 2: Add modules in IIS7)

Reference: http://aabs.wordpress.com/2007/11/16/ihttpmodule-not-running-after-conversion-to-iis-7-and-net-35/

Method 3: modify web. config

Learn more:

IIS7 Application Pools has two modes: one is Integrated and the other is classic. If you use the Integrated mode, you need to modify the configuration file for the custom httpModules and httpHandlers, and transfer them to the <modules> and

What is the difference between IIS7 and IIS6?

IIS7.0 Integrated mode:Asp.net modules and handlers from <system. webServer> <modules> and

IIS7.0 Classic mode:<Modules> and

IIS6.0:Everyone is familiar with this.

If you do a configuration that can be run in both IIS6 and IIS7 modes? ValidateIntegratedModeConfiguration = "false" What is the purpose? If you have any need, you can view the details here.

Second, after migrating from iis6 to iis7, some url rewrite functions may not work well. The following article describes an hack method that effectively controls the duties of staticFile handler, the iis6.

Sample Code:

<System. web> <! -- Modules for IIS 6.0 and IIS 7.0 Classic mode --> <HttpHandlers>

<Addpath = "*. myh" verb = "GET" type = "MyApp. MyHandler"/>

</HttpHandlers>

</System. web> <system. webServer> <! -- Modules for IIS 7.0 Integrated mode --> <modules> <add name = "MagicAjaxModule" type = "MagicAjax. MagicAjaxModule, MagicAjax"/> </modules> <! -- Handlers for IIS 7.0 Integrated mode -->

<Handlers>

<Addname = "MyHandler" path = "*. myh" verb = "GET" type = "MyApp. MyHandler" preCondition = "integratedMode"/>

</Handlers>

<! -- Disable detection of IIS 6.0/Classic mode ASP. NET configuration --> <validation validateIntegratedModeConfiguration = "false"/> </system. webServer>
An error occurred while migrating the ASPnet application from IIS60 to IIS70.

It should not be about IIS, but it is mainly about your code.

Iis7 part asp page 500 Error

Iis is not configured,
This problem occurs when the server side, including the parent path, is not enabled.

You have configured iis in the 2003 system and can run it, but in iis7, your iis does not have to be set!
It is said that your iis configuration may have problems. It does not mean that your program is faulty. Please check the problem carefully ......

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.