简体   繁体   English

在IIS 8.5上运行.NET 4.6 MVC应用程序(Windows Server 2012)

[英]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.

相关问题 在IIS 5 + Windows Server 2003上运行的ASP.NET MVC应用程序中的错误500 - Error 500 in a ASP.NET MVC Application running on IIS 5 + Windows Server 2003 IIS 8.5上托管的404错误ASP.NET MVC应用程序 - 404 error ASP.NET MVC application hosted on IIS 8.5 将ASP MVC应用程序部署到运行IIS 7.5的Windows 2008服务器 - Deploying an ASP MVC application to Windows 2008 server running IIS 7.5 IIS 未运行 ASP.NET MVC 应用程序 - IIS not running ASP.NET MVC application 将 ASP.NET MVC 3 (Razor) 应用程序发布到运行 Windows Server 2003 和 IIS 6 的远程服务器上 - Publish ASP.NET MVC 3 (Razor) app onto remote server running Windows Server 2003 with IIS 6 将ASP.NET MVC 4(Razor)应用发布到运行带有IIS 7的Windows 7的远程服务器上 - Publish ASP.NET MVC 4 (Razor) app onto remote server running Windows 7 with IIS 7 Windows Server 2016 上的 IIS 10 未运行我的 ASP.NET MVC 网站 - IIS 10 on Windows Server 2016 not running my ASP.NET MVC website 将 ASP.NET MVC 5 应用程序部署到 Windows Server 2008 R2 上的 IIS 7.5 - Deploying ASP.NET MVC 5 Application to IIS 7.5 on Windows Server 2008 R2 如何将ASP.NET MVC应用程序部署到Windows Server 2008 IIS 7.5上? - How to Deploy an ASP.NET MVC Application onto Windows Server 2008 IIS 7.5? IIS 8.5上的MVC 5错误 - MVC 5 on IIS 8.5 error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM