Any way to detect classic and integrated application pool in code?
I've got an ASP.NET MVC application running in shared hosting. Recently the site got munged when the application pool was accidentally switched from integrated back to classic mode. We had to change the routes until tech support got the app pool reconfigured. It would be great if there was a way to detect the application pool mode in code and set the routes accordingly: one route for integrated mode and one for classic. This would prevent the site from going down in these circumstances. An MVC site with its routing blown out looks pretty sad.
You can use the HttpRuntime.UsingIntegratedPipeline property.
External component has thrown an exception after framework upgrade on server
Asp.net www redirect to non www
Bootstrap Glyphicon Popover
how to return to filled out form from other view in mvc
Edit page with a foreign key constraint fails in Asp.net MVC
MVC pass int from view to controller with a button click
PCL Attribute not seen in MVC ModelMetaDataProvider
How to a publish visual studio solution with two dependencies projects to azure?
EF Core + MVC 6 + .NET Core RC2 - EF not returning results
Can we display linq result in view without using model
EF - work with universal entity in library project, when not specified database entities
asp.net core not detecting classlibrary Model on View during runtime
Using Ajax.BeginForm helper in MVC 5 for uploading picture issue [duplicate]
Decorating class with Authorize assumes Office 365 login, instead of offering choice
how can pass the parametrized ActionResult value through ActionLink()
How to get HtmlHelper.Action() working inside a webforms aspx page