Asp.net mvc 5 如何在IIS8.5上托管Asp.NETMVC5?

Asp.net mvc 5 如何在IIS8.5上托管Asp.NETMVC5?,asp.net-mvc-5,iis-8.5,Asp.net Mvc 5,Iis 8.5,我在iis 8.5上有MVC5应用程序。 我的控制器动作得到404。静态文件处理程序出错。 我如何告诉IIS让ASP处理无扩展查询? 我在下面添加了一节,但没有意义 <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <remove name="UrlRoutingModule-4.0"/> <add name="UrlRoutingModule-4.0"

我在iis 8.5上有MVC5应用程序。 我的控制器动作得到404。静态文件处理程序出错。 我如何告诉IIS让ASP处理无扩展查询? 我在下面添加了一节,但没有意义

<system.webServer>
 <modules runAllManagedModulesForAllRequests="true">
  <remove name="UrlRoutingModule-4.0"/>
  <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
</modules>
</system.webServer>

IIS Express很适合此查询。

您在IIS中为此创建了网站吗?是的,我得到了索引页和类似于/.aspx的页面。