Error while enabling Windows feature : NetFx3

Today I came across an error when trying to install SQL Server 2012 on Windows Server 2012 R2. There are several options to fix this error. Using Server Manager, Command Prompt or using PowerShell. Make sure you mount the OS cd before going forward. (D: is my CD Drive)

TITLE: Microsoft SQL Server 2012 Setup

——————————

The following error has occurred:

Error while enabling Windows feature : NetFx3, Error Code : -2146498298 , Please try enabling Windows feature : NetFx3 from Windows management tools and then run setup again. For more information on how to enable Windows features , see http://go.microsoft.com/fwlink/?linkid=227143

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.2100.60&EvtType=0x681D636F%25401428%25401

——————————

BUTTONS:

OK

——————————

clip_image001

Fix Using Server Manager

Open Server Manager under manage select “Add Roles and Features”. Then select .NET Framework 3.5 Features click Next

clip_image002

As the binaries for .NET Framework 3.5 Features not copied with the OS make sure you insert the Server OS media. You can find it in the warning as well. Click on “Specify and alternate source path” to explicitly specify the source location. In my case its D:\sources\sxs. Then resume the setup.(Just Next Finish)

clip_image003

clip_image004

 

Fix Using Command Prompt or PowerShell

In Command prompt as administrator and run dism /online /enable-feature /featurename:NetFx3 /source:d:\sources\sxs

If you are using powerShell run Add-WindowsFeature NET-Framework-Core -Source D:\sources\sxs in elevated mode.

clip_image005

After installing .NET 3.5 I was able to install SQL 2012 successfully. Open-mouthed smile

image

For further details you can refer Microsoft’s support article http://support.microsoft.com/kb/2734782

Thank you Smile

Advertisements

Get SharePoint Farm Version

To get which build version your farm is,

Go to Central Administration > System Settings > Manage servers in your farm (/_admin/FarmServers.aspx)

image

Or

using Windows PowerShell: (Get-SPFarm).BuildVersion