IIS7 发布MVC4问题

在webconfig中节点<system.webServer>插入

 <modules runAllManagedModulesForAllRequests="true">
      <remove name="UrlRoutingModule-4.0" />
      <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
      <!-- any other modules you want to run in MVC e.g. FormsAuthentication, Roles etc. -->
    </modules>

 相关资料:http://stackoverflow.com/questions/19504910/proper-tutorial-on-setting-up-iis7-with-an-asp-net-mvc4-application

原文地址:https://www.cnblogs.com/lampon/p/3762164.html