When I try to serve a WCF service on IIS in a Windows 8 machine, I get the well known error
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
The old work around was to run aspnet_regiis -i but this command seems to have been deprecated in Windows 8 yielding response This option is not supported on this version of the operating system. (...).
What would be the work around?
(I have successfully enabled regular aspx pages already, so most of the IIS config seems healthy.)
Seemed to be a no brainer; the WCF service should be enabled using
Programs and Features -> Turn Windows features on or offin the Control Panel. Go to.NET Framework Advanced Services -> WCF Servicesand enableHTTP Activationas described in this blog post on mdsn.From the command prompt (as admin), you can run:
If you get an error then use the below