HTTP Error 500.22-internal Server error detected an ASP. NET setting that is not applicable in integrated managed pipeline mode. The most probable cause:
This application defines the configuration in the System.web/httpmodules section.
actions you can try:
Migrate the configuration to the System.webserver/modules section. You can do this manually, or by using APPCMD on the command line. For example, run appcmd migrate config "Default Web site/"from the IIS Express installation directory. Migrating an application with APPCMD will enable it to work in integrated mode and continue to work in Classic mode and previous versions of IIS.
If you are sure you can ignore this error, you can disable it by setting System.webserver/[email protected] to false.
You can also switch applications to the Classic mode application pool. For example, run the appcmd set app "Default Web site/"/applicationpool: "Clr4classicapppool"from the IIS Express installation directory. Do this only if you cannot migrate the application.
Detailed error message:
module |
con Figurationvalidationmodule |
notification |
beginrequest |
handler |
pagehandlerfactory-integrated-4.0 |
error code |
0x80070032 |
The requested URL |
Http://localhost:2959/about.aspx |
Physical path |
E:\**\**\**\about.aspx |
Login method |
Not yet determined |
Logged in user |
Not yet determined |
Request Trace Directory |
C:\Users\Administrator\Documents\IISExpress\TraceLogFiles\MYWEB. Web |
More information: Integration mode is the preferred mode for running ASP. NET applications on IIS 7.0 and later versions.
Workaround:
Method One: Modify the application pool managed pipeline mode to Classic mode
Method Two, modify the Web. config
<add type= "Urlrewriter.rewritermodule, Urlrewriter" name= "Rewritermodule"/>
</system.web>
Revision changed to
<system.webServer>
<modules>
<add type= "Urlrewriter.rewritermodule, Urlrewriter" name= "Rewritermodule"/>
</modules>
</system.webServer>
</configuration>
HTTP Error 500.22-internal Server error