<system.webServer> <modules runAllManagedModulesForAllRequests="true" /> </system.webServer>添加红色代码,ASP.NET MVC项目在IIS上可正常运行