How to Fix HTTP Error 500.22 - Internal Server Error An ASP.NET parameter was found that does not apply in integrated managed pipeline mode

I found out about Http modules and during the last attempt I got:

HTTP Error 500.22 - Internal Server Error. ASP.NET configuration was not applied in integrated managed pipeline mode.

One of the proposed solutions:

from the IIS Express installation directory, run appcmd migrate config "Default Web Site /".

So, from the command line I went to C\Program Files\IIS Express and then executed: appcmd migrate config "Default Web Site/"

The received Migration command is not supported in the configuration of the object.

How to do it right?

+5
source share
1 answer

Chk my SO Post

Finally, I can hack it for VS.Net 2015 and its IISExpress configuration. IT cannot configure it β€œexternally” and nothing will work if you continue to change IIS or IISExpress settings outside of VS.Net.

It took me a while to narrow my view of the properties and configurations of VS.Net proj. I found that VS.Net created its own version of "applicationhost.config", which can be found on the page

<myProject.sln path> \ .vs \ config \ applicationhost.config

This is the file in which I had to change the application pool ( applicationPool = "Clr4ClassicAppPool ) -

  <sites> <site name="WebSite1" ... ignore this sction if present </site> <site name="myProject" id="2"> <application path="/" applicationPool="Clr4ClassicAppPool"> <virtualDirectory path="/" physicalPath="D:\Source\myProject" /> </application> <bindings> <binding protocol="http" bindingInformation="*:1960:localhost" /> </bindings> </site> 

You just need to change the applicationPool (your classic application pool name may be different in this case, get the correct one from one file). Also make sure you update the correct "site" node (the correct URL of the local web application when debugging from VS.Net)

If the problem still exists, install the following:

 <applicationDefaults applicationPool="Clr4IntegratedAppPool" /> 

Hope this helps.

+3
source

Source: https://habr.com/ru/post/1241487/


All Articles