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?
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