ASP.NET MVC on IIS 7.5

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

    The UI is a bit different in the newer versions of Windows Server. Here is where you have to enable ASP.Net in order to get it working on IIS

    0 讨论(0)
  • 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)

    0 讨论(0)
  • 2020-11-22 12:34

    Sweet Jesus. I tried all of the above things (but found my settings identical). YET ANOTHER SOLUTION if you are having issues:

    http://support.microsoft.com/kb/980368

    Try installing this KB for your system. If you are seeing 404s it might be because you don't have this update -- and the isapi module just isn't getting found and there's not a lot you can do about that without this!

    0 讨论(0)
  • 2020-11-22 12:34

    Please note for Windows 8 users you need to add/remove windows components and remove the version of .net reboot then re-install in order to register it with IIS. I presume this happens if you get .net 4.5 from visual studio and install IIS afterwards.

    0 讨论(0)
提交回复
热议问题