I've an ASP.NET MVC5 web app on my local Win 10 machine. Recently, I upgraded some Nuget packages and MVC4 to MVC5. And updated the target framework version to .Net v4.5.
Now, when I debug the web app from local VS.Net 2015 Community version I get the following error -
HTTP Error 500.22 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
Most threads I found were for IIS I'm talking about IISExpress. They suggested to change the web app's App Pool to a Classic in IIS (Post1, Post2, Post3). But VS.Net uses IISExpress so I went deeper into that as well and located - C:\Users\\Documents\IISExpress\config\applicationhost.config. Tried to edit it but it would allow me to configure only one WebSite1 which is localhost:8080 and mine runs as localhost:1960.
I've also tried the appcmd commandline approach but unless I've a website 'localhost:1960' there seems no way. I also sought an IISExpress UI tool Jexus but my 'localhost:1960' website is not listed.
Apparently, setting
<validation validateIntegratedModeConfiguration="false" /> in web.config
fixes it. But its not the best solution. And I can't remove httpHandlers or modules from my web.config.
I need to know how to manipulate the IISExpress that is invoked by VS.Net 2015 while debugging. Not IIS.
Thank you.