今天在win8的iis中注册.net 4.5发现一问题,使用aspnet_regiis.exe -i命令却报以下错误。This option is not supported on this version of the operating system. Administr
ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the “Turn Win
dows Features On/Off” dialog, the Server Manager management tool, or the dism.e
xe command line tool. For more details please see http://go.microsoft.com/fwlin
k/?LinkID=216771.
ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the “Turn Win
dows Features On/Off” dialog, the Server Manager management tool, or the dism.e
xe command line tool. For more details please see http://go.microsoft.com/fwlin
k/?LinkID=216771.
后来经过了解,在win8的iis8下不能这样使用命令去安装framework到iis中,而是首先应该在控制面板的应用程序安装与卸载模块,将前两项都打上钩。
最后在执行一下
- dism /online /enable-feature /featurename:IIS-ASPNET45命令。注意,cmd一定要用管理员账户打开。