当我运行 WCF 服务时,出现 MIME 未注册错误。我用过这个link来解决这个问题。之后,我开始收到另一个错误,要求我向 IIS 注册 ASP.NET 框架。所以我用了“aspnet_regiis”命令,但它显示以下错误。
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
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.17929).
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.
Finished installing ASP.NET (4.0.30319.17929).
我尝试从服务器安装/卸载 ASP.Net 4.5。但这样做之后,我的服务器没有再次启动,并且总是显示黑屏。所以我必须再次安装WS 2012。有人可以解释一下如何在 WS 2012 上再次向 IIS 注册 ASP.NET 吗?
我们必须卸载属于服务器角色而非功能的 4.5。我还附上屏幕以供参考。
为此,打开服务器管理器 -> 仪表板 -> 2) 角色和功能,然后按照屏幕截图中提到的以下步骤进行操作。
注意:我向您展示如何添加角色和功能向导(安装新功能/角色),但如果您想卸载/删除(卸载新功能/角色),则必须单击“启动删除角色和功能向导” 。请确保,首先我们必须安装 IIS,然后安装 .NET Framework。
选择服务器
您必须检查 ASP.NET 3.5 和 ASP.NET 4.5(根据要求)选项以向 IIS 注册 .NET 框架。
要安装任何功能/角色,我们必须检查要安装的选项。要卸载任何功能/角色,您必须取消选中它。
请找到下面的参考链接。
http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45
http://www.iis.net/learn/get-started/whats-new-in-iis-8/installing-iis-8-on-windows-server-2012
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)