码迷,mamicode.com
首页 > Windows程序 > 详细

Enable .Net 4.5 in IIS on Windows 8.1

时间:2014-09-23 00:52:53      阅读:383      评论:0      收藏:0      [点我收藏+]

标签:style   http   io   os   ar   strong   for   2014   sp   

Setting up a new development box for myself I had forgotten all about the necessity to 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-to.

On my Windows 8.1 aspnet_regiis resulted in this message:

Microsoft (R) ASP.NET RegIIS version 4.0.30319.33440 
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved. 
Start installing ASP.NET (4.0.30319.33440). 
This option is not supported on this version of the operating system.  Administrators should instead install/uninstall ASP.NET 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 details please see
http://go.microsoft.com/fwlink/?LinkID=216771
Finished installing ASP.NET (4.0.30319.33440).

Googling around a bit more turned up this link that explains how to go to the Windows Features (viaappwiz.cpl) to activate .Net 4.5 on IIS:

bubuko.com,布布扣

Or to run this from an administrative prompt:

dism /online /enable-feature /all /featurename:IIS-ASPNET45

Please note the /all parameter which is not mentioned in the KB article, but necessary to automatically include all the necessary components.

UPDATE:

In order to get my webservices running I have spent more hours on struggling with the IIS beast. It appears that (according to this) you have to have to switch on yet another feature:

bubuko.com,布布扣

Or, if you want to automate all this, 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

标签:style   http   io   os   ar   strong   for   2014   sp   

原文地址:http://www.cnblogs.com/joe-yang/p/3986790.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!