IISExpress VS.Net 2015 - HTTP Error 500.22 - An ASP.NET parameter was found that does not apply in integrated managed pipeline mode

I have an ASP.NET MVC5 web application on my local Win 10 machine. I recently upgraded some Nuget and MVC4 packages to MVC5. And updated the version of the target environment to .Net v4.5.

Now when I debug a web application from the local version of the VS.Net 2015 community, I get the following error:

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

Most of the topics I found for IIS are about IISExpress. They suggested changing the App Pool app to Classic in IIS ( Post1 , Post2 , Post3 ). But VS.Net uses IISExpress , so I went deeper into this and found C: \ Users \\ Documents \ IISExpress \ config \ applicationhost.config. I tried editing it, but this allowed me to configure only one WebSite1, which is localhost: 8080, and mine works as localhost: 1960.

I also tried the appcmd command line approach, but if I don't have a local site on the site: 1960, it seems not. I also searched for the IISExpress UI Jexus tool , but my site "localhost: 1960" is not listed.

Installation apparently

<validation validateIntegratedModeConfiguration = "false" / "> in web.config

corrects this. But this is not the best solution. And I cannot remove httpHandlers or modules from my web.config.

I need to know how to manipulate IISExpress , which is called by VS.Net 2015 during debugging. Not IIS .

Thanks.

0
source share
1 answer

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" /> 

If there is still a problem, make the above changes and in this file -

C: \ Users \ <youruser> \ Documents \ IISExpress \ Config \ ApplicationHost.config

You may need to restart. Hope this helps.

+2
source

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


All Articles