Running a .NET 4.6 MVC application on IIS 8.5 (Windows Server 2012)
Asked Answered
A

1

2

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?

Arsenite answered 29/6, 2015 at 10:34 Comment(0)
K
3

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

enter image description here

Keldon answered 29/6, 2015 at 20:22 Comment(4)
I made this change and get all sort of other errors which I will look into. Thanks.Arsenite
you're welcome, what was it? (someone else might want to know)Keldon
I was missing some components from the "Add Features" or whatever it's called on Windows Server 2012Arsenite
What components where you missing? I have the same issue.Hamstring

© 2022 - 2024 — McMap. All rights reserved.