Alternative for the Registering ASP.NET 4.5 on Windows Server 2012

纵然是瞬间 提交于 2019-12-30 03:17:06

问题


I am getting MIME is not registered error when I run WCF service. I used this link to resolve this issue. After that I started getting another error which asked me to register the ASP.NET framework with IIS. So I used "aspnet_regiis" command for it but it shows me following error.

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).

I tried to install/uninstall ASP.Net 4.5 from the server. But after doing that, my server was not started again and it always show the black screen. So I have to install the WS 2012 again. Can somebody explain me how to register ASP.NET with IIS again on WS 2012?


回答1:


we have to uninstall the 4.5 which comes under the Server roles not features. I am also attaching screen for the reference.

For this open the Server manager -> Dashboard -> 2) Roles and Features and follow the following steps which are mentioned in screenshots.

Note: I am showing you how to Add Roles and Features wizard (install new features/roles) but if you want to uninstall/remove (uninstall new features/roles) then you have to click on “Start the Remove Roles and Features Wizard”. Please make sure that, first we have to install IIS and then .NET framework.

Select the server

You have to check ASP.NET 3.5 and ASP.NET 4.5 (based on requirement) options for register the .NET framework with IIS.

To install any features/roles, we have to check that option which we want to install. For uninstall any features/roles you have to uncheck it.

Please find the reference links below.

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




回答2:


I had tried this once before on a Server Core Installation with the GUI installed. Similar to what the original poster saw I was Dropped into a Black Screen. not sure if he saw the same thing, but you can recover from this by reinstalling the GUI instead of starting a clean install. On 2012, Uninstall .NET 4.5 as a last resort, and if you completey remove all .net, don't be surprised to see the Command prompt on reboot. For help on GUI re installation see: https://www.linkedin.com/pulse/20140618170857-12975178-procedure-to-recover-gui-in-windows-2012-and-2012r2-net-framework-feature-dependency-in-windows-2012-2012-r2



来源:https://stackoverflow.com/questions/14495429/alternative-for-the-registering-asp-net-4-5-on-windows-server-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!