正如几个问题(Alternative for the Registering ASP.NET 4.5 on Windows Server 2012; Server 2012 IIS 8 MVC app shows default IIS home page or 403/404 errors; WCF on IIS8; *.svc handler mapping doesn't work)文件,在Windows服务2012 aspnet_regiis -ir
命令不工作了,而是产生以下的输出:什么是Windows Server 2012命令行相当于`aspnet_regiis -ir`?
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 .
在我们的例子中,我们只需要运行此命令重新注册ASP.NET 4.5,因为其他安装未注册它:ASP.NET 4.5已安装。
使用UI(添加/删除角色/功能),受到引用帖子的启发,我发现只需删除WCF的HTTP激活功能并再次添加即可。 (但我需要卸载/重新安装恰好依赖于WCF HTTP激活的功能......)
问题:在Windows Server 2012上如何通过命令行完成同样的事情?
(我看着这个dism.exe
东西,但它看起来令人生畏,而dism.exe -?
没有帮助我的人。)
谢谢!
是不是真正的问题... – 2014-04-04 07:04:41
他提到,他已经能够做到这一点。他正在寻求一种替代使用aspnet-regiis的命令行。这个答案是无关紧要的! – 2017-12-12 07:54:46