Running the .NET 4.6 MVC Application on IIS 8.5 (Windows Server 2012)

I have an MVC Web API 2 application that I successfully execute locally in Visual Studio 2015 RC. I also successfully published this application for an IIS 8.5 instance running on Windows Server 2012. I also installed the .NET Framework 4.6 on this computer.

The behavior that I get when I try to go to the root of the site ( http: // localhost: 81 ) is that I get the directory listing the files in the root folder. Obviously, I expected that the routing configuration of the application will begin to be performed by the home controller, but this does not happen.

I’m a developer, and I’ve been around for some time since I configured IIS, but I remember that I needed to play a little with IIS (6?) To make routing work.

What am I missing?

+1
visual-studio asp.net-mvc iis visual-studio-2015
Jun 29 '15 at 10:34
source share
1 answer

Make sure the application pool is running in integrated mode, not classic mode.

enter image description here

+3
Jun 29 '15 at 20:22
source share



All Articles