ASP.NET MVC on IIS 7.5

前端 未结 28 2031
北荒
北荒 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:33

    ASP.NET 4 was not registered in IIS. Had to run the following command in the command line/run

    32bit (x86) Windows

    %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir

    64bit (x64) Windows

    %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir

    Note from David Murdoch's comment:

    That the .net version has changed since this Answer was posted. Check which version of the framework is in the %windir%\Microsoft.NET\Framework64 directory and change the command accordingly before running (it is currently v4.0.30319)

提交回复
热议问题