Error while enabling Windows feature: NetFx3, Error Code: -2146498298

I was doing SQL server 2012 installation for my lync server 2013 lab and I ran into this error “Error while enabling Windows feature: NetFx3, Error Code: -2146498298, Please try enabling Windows feature: NetFx3 from Windows management tool and then run setup again.”

Installation Error

Started the server manager and tried to install the .Net Framework 3.5 with SP1 and it failed with error “Do you need to specify an alternate source path? One or more installation selections are missing source file on the destination

Now the only choice I had was to install .Net Framework 3.5 was using Deployment Image Servicing and Management (DISM). For more information on DISM, refer to this article. I tried to install it using DISM by running the command dism /Online /Enable-Feature /FeatureName:NetFx3 /Source:D:sourcessxs but it failed with below error.

As it say “Error itself has solution in it” indeed it had the solution. I just had to modify the command and run it with /all switch like this, dism /Online /Enable-Feature /FeatureName:NetFx3 /All /Source:D:sourcessxs and it will complete successfully, as you can see.
Note: Make sure you have Windows Server 2012 media in the drive before you run this command.

After this SQL Server 2012 installation completed like a charm 🙂

Continued my Lync Server 2013 installation and completed with Archiving and
Monitoring server roles.


About the Author

Gulab Prasad

Technology Consultant & Blogger

MCSE: Exchange Server 2016, 2013
MCSE: Skype for Business Server 2015
MCSE: Azure Productivity
MCSE: Windows Server 2016
MCSA: Windows Server 2012, Office 365
MCITP: Exchange Server 2010-2007 | Lync Server 2010
VMware: vSphere 6 Foundations