Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 624
alok_dida Avatar asked Jan 24 '13 06:01

alok_dida


People also ask

Which among the operating systems below does not have a net 4.5 framework installed by default?

NET Framework 4.5 is enabled by default in Windows 8. Windows 8 does not include .

What version of .NET framework comes with Windows Server 2012?

The . NET Framework 4.6. 1 will be offered to all Windows Server 2012 R2 computers that have an earlier version of the . NET Framework 4.5NET Framework 4.5NET Framework 4. The . NET Framework is Microsoft's comprehensive and consistent programming model for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes.https://www.microsoft.com › en-us › download › detailsMicrosoft .NET Framework 4 (Web Installer).


1 Answers

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.

enter image description hereenter image description here

Select the server

enter image description here

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

enter image description here

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

like image 147
alok_dida Avatar answered Oct 25 '22 14:10

alok_dida