To fix the above issue you need to perform following steps:
- Mount the OS to any drive on the server where you are trying to install SQL.
- Run the following command using administrator privileges
dism /online /enable-feature /featurename:NetFx3 /all /source:d:\sources\sxs
Where you need to replace d:\ with your OS mount drive.
3. After Enabling feature successfully , start the SQL Server 2014 setup again. Now you can install SQL 2014 with out any NetFx3 issue.
Problem:
I was installing SQL Server 2012 on Windows Server 2012, and the installation failed with the following error.
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
Reason:
Since I didn’t enable .NET Framework 3.5 before installing SQL Server 2012 it failed.
Solution:
Enable .NET Framework 3.5 and then install SQL Server 2012.
Below is the procedure to enable .NET Framework 3.5 in Windows Server 2012
Using GUI
1. Go to Server Manager -> Manage -> Add Roles and Features
2. Click Next
3. Click Next button, the wizard will shows the Installation Type section where we have to select the Role-based or feature-based installation option that it has used to configure this server by adding roles, role services and features.
4. Click Next button, it will show the Server Selection section. Click Select a server from the server pool and over the grid, select the server
5. Click Next
6. Select the .NET Framework 3.5 Feature Checkbox and click Next.
7. Warning message informs us that for one or more installation selections are missing source files on the destination server, so we have to specify an alternative source path. Click the Specify an alternative source patch
8. Provide the required source file path for the .Net Framework 3.5 which is in Windows Server 2012 ISO file. Extract or Mount this. and click OK
9. TheResults section will show the installation status. Installtion will complete.
Once .net framework 3.5 is enabled. We can install SQL Server 2012 on Windows Server 2012.
Using Command Line
dism /online /enable-feature /featurename:NetFx3 /source:d:\sources\sxs
Hope this was helpful !!!
Posted by Siddharth Verma on November 11, 2014
Hello friends,
It has been a while since I last wrote a blog post, but I have received several questions regarding a specific error: “Error while enabling Windows feature: NetFx3.” Today, I will address this error and provide you with the solution.
Firstly, let’s understand what this error is and why it appears with different names in different scenarios. The error occurs when installing SQL Server or other applications that require the .NET Framework 3.5. The problem arises because Windows Server 2012 does not include NetFx3 by default. However, it can be installed separately.
Now, let’s move on to resolving the issue. There are two ways to do this:
Using the GUI
- Insert the Windows 2012 CD or attach the ISO file if using a virtual environment like VMware or Hyper-V.
- Check the drive letter assigned to the CD or ISO file (e.g., D:).
- Open Server Manager and go to “Manage” and then “Add roles and features.”
- Select “.NET Framework 3.5 features” and click “Next.”
- Enter the alternate source path, which in our case is “D:\Sources\SxS”. This is where the necessary bits are located.
- Click “OK” and proceed with the installation.
Using the Command Prompt
If you prefer using the command prompt, follow these steps:
- Open the command prompt.
- Type the following command:
dism /online /enable-feature /featurename:netfx3 /all /source:d:\sources\sxs
Once you have completed either of these processes, the error should no longer occur.
If you found this post helpful, please like our Facebook page: https://www.facebook.com/Ashishsharepointblog.
Feel free to rate and provide feedback if you found this post useful.
Hope this helps!
Best regards,
Ashi
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
——————————
Fix Using Server Manager
Open Server Manager under manage select “Add Roles and Features”. Then select .NET Framework 3.5 Features click Next
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)
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.
After installing .NET 3.5 I was able to install SQL 2012 successfully.
For further details you can refer Microsoft’s support article http://support.microsoft.com/kb/2734782
Thank you
Something I have run into a few times now which is an annoying timewaster is the following error:
Error While Enabling Windows Feature netfx3
You’ll get it on windows 2012 installations when installing SQL 2012(And probably lower versions) and it’s caused by dotnet 3.5not being enabled on the windows installation. It’s frustrating because it happens during the actual installation and is not flagged in any of the pre-requisite checks. This is because Windows assumes it either has access to the install media to install it from, or can download it from the internet. On your SQL Servers you shouldn’t have direct internet access, and you are unlikely to have the install media lying around. At any rate – here’s how to fix it:
1. Place the install media back to it’s original location(Most likely the CD drive).
2. From Server Manager choose ‘Add Roles and Features’.
3. Add ‘.NET framework 3.5 features’.
4. Now redo your SQL Install and you should be fine.