ASP.NET MVC on IIS 7.5

前端 未结 28 2396
北荒
北荒 2020-11-22 11:33

I\'m running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently decided to have VS run/debug my apps on IIS rather than the dev server that comes with it. <

28条回答
  •  感动是毒
    2020-11-22 12:20

    For me on an Azure Server 2012 R2 IIS 8.5 VM with an Asp.Net MVC 5 app (bin deployed MVC 5) I had to do the following from an elevated cmd prompt even though I had 4.5 already installed:

    dism /online /enable-feature /featurename:IIS-ASPNET45
    

    Source: http://support.microsoft.com/kb/2736284

    I also brute force installed all IIS features with the following PowerShell:

    import-module servermanager
    add-windowsfeature web-server -includeallsubfeature
    

    Source: http://www.iis.net/learn/install/installing-iis-85/installing-iis-85-on-windows-server-2012-r2

    Now my app is working.

提交回复
热议问题