1

I have an MVC Web API 2 application that I am running quite successfully locally within Visual Studio 2015 RC. I have also successfully published this application to an IIS 8.5 instance running on Windows Server 2012. I have installed .NET Framework 4.6 on this machine also.

The behaviour that I am getting when I try to navigate to the root of the site (http://localhost:81) is that I get a directory listing of the files in the root folder. Clearly I was expecting the routing config of the application to kick in an execute the home controller, but this is not happening.

I am a developer and it has been some time since I configured IIS, but I do remember that I had to do some fiddling with IIS (6?) to get the routing to work.

What am I missing?

serlingpa
  • 12,024
  • 24
  • 80
  • 130

1 Answers1

3

Make sure your application pool is running in integrated mode and not classic.

enter image description here

dove
  • 20,469
  • 14
  • 82
  • 108