Setting up a new development box for myself I had forgotten all about the necessity-use theaspnet_regiis.exe–i command. The information is fairly easily available, but with this post I ' d like to cut away the fat and stick to a very easy how-t O.
On my Windows 8.1 aspnet_regiis resulted in this message:
Microsoft (R) ASP. Regiis version 4.0.30319.33440
Administration utility to install and uninstall ASP.
Copyright (C) Microsoft Corporation. All rights reserved.
Start Installing ASP (4.0.30319.33440).
This option isn't supported on this version of the operating system. Administrators should instead install/uninstall ASP. 4.5 with IIS8 using the "Turn Windows Features on/off" dialog, The Server Manager management tool, or the dism.exe command line tool. for more detailshttp://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP. NET (4.0.30319.33440).
Googling around a bit more turned up this link explains how to go to the Windows Features (viaappwiz.cpl) to Acti Vate. Net 4.5 on IIS:
Or to run the from an administrative prompt:
Dism/online/enable-feature/all/featurename:iis-aspnet45
Please note The/all parameter which are not mentioned in the KB article, but necessary to automatically include all the NE Cessary components.
UPDATE:
In order to get my webservices running I has spent more hours on struggling with the IIS beast. It appears that, according to this, has to have a to switch on yet another feature:
Or, if you want to automate all this, and more DISM commands:
Dism/online/enable-feature/all/featurename:wcf-http-activation
Dism/online/enable-feature/all/featurename:wcf-http-activation45
from:http://phejndorf.wordpress.com/2014/01/10/enable-net-4-5-in-iis-on-windows-8-1/
Enable. Net 4.5 in IIS on Windows 8.1