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.
What should be written inside the connection string when migrating SQL db to Azure with VS2015?
Url delimiter with “-” MVC Routes
FoolProof MVC GreaterThan not working with time
Microsoft Word Online Edition in asp.net mvc web application
MVC Areas & Shared Layouts
automapper with pagedlist always return one page
Adding validation data attributes to custom input
Drop down toggle is not working in pagination
How can I destroy session in Asp.net MVC 5?
Include a sorted bundle to another bundle
ASP.NET MVC - The entity type IdentityRole is not part of the model for the current context
ASP.NET Bootstrap table padding between columns not working
MVC - ADFS Authentication - ADFS redirects to localhost
Error: “The resource cannot be found” when trying to pass in an empty object to View
MVC Model Navigation Property
why image is not loading to the view page in mvc razor