Enable. Net 4.5 in IIS on Windows 8.1

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.