代码改变世界

windows 10 iis 8 注册asp.net 4.5

2016-11-07 14:51  张小驴同学  阅读(2237)  评论(0编辑  收藏  举报

http://stackoverflow.com/questions/32716434/register-net-4-5-iis-10-windows-10

 

I had the same issues which I have since fixed in VS 2015, my situation was:

  1. Update from Windows 7 --> Windows 10
  2. Installed VS 2015
  3. Enabled IIS so I could then open the management console & do lovely things
  4. I then tried to host a .net 4.5 Web API in my local IIS mentioned above

Result was 404 errors.

To fix:

  1. Open the Developer Command Prompt for VS2015 as Administrator
  2. Run dism /online /enable-feature /all /featurename:IIS-ASPNET45
  3. The operation completed successfully

Lovely 200 responses...