[英]Running a .NET 4.6 MVC application on IIS 8.5 (Windows Server 2012)
I have an MVC Web API 2 application that I am running quite successfully locally within Visual Studio 2015 RC. 我有一个MVC Web API 2应用程序,我在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.
我还成功将此应用程序发布到在Windows Server 2012上运行的IIS 8.5实例。我也在此计算机上安装了.NET Framework 4.6。
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. 当我尝试导航到站点的根目录( http:// localhost:81 )时,我得到的行为是我获得根文件夹中文件的目录列表。 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. 我是一名开发人员,自从我配置IIS以来已经有一段时间了,但是我确实记得我必须做一些摆弄IIS(6?)以使路由工作。
What am I missing? 我错过了什么?
Make sure your application pool is running in integrated mode and not classic. 确保您的应用程序池以集成模式运行而不是经典模式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.