Recently while I was trying to install .Net Framework 3.5 in Windows Server 2012 R2 machine, I got the below error: “Windows Server roles and features cannot be automatically installed or uninstalled via the Windows Features Control Panel”.
I was trying to install SharePoint 2016 on windows server 2012 R2 where I got the above error. So I tried to download and install .Net Framework 3.5 in windows server 2012 R2. But simply .Net Framework cannot be downloaded and installed in Windows server 2012 r2.
It will give an error like below:
The following feature couldn’t be installed:
.NET Framework 3.5 (includes .NET 2.0 and 3.0)
Windows Server roles and features cannot be automatically installed or uninstalled via the Windows Features Control Panel.
To install Windows Server roles and features, start Server Manager, or use the Server Manager cmdlets for Windows PowerShell. For more information, see: Server Manager Help.
windows server roles and features cannot be automatically installed
We have to installed .Net Framework 3.5 through Server Manager in Windows server 2012 r2. Follow the below steps:
Open Server Manager, then from “Configure this local server”, click on “Add roles and features” as shown in the fig below:
Windows Server roles and features cannot be automatically installed or uninstalled
This will open the Before you begin dialog box, click on Next.
Here in the Select installation type, choose “Role-based or feature-based installation” and then click on Next like below:
Windows Server roles and features cannot be automatically installed or uninstalled via the Windows Features Control Panel
Then in the Select destination server, select the “Select a server from the server pool” radio button and choose the server name and click on Next.
In the Select server roles, no need to select anything. Just click on Next like below:
Then in the Select features screen, select .NET Framework 3.5 Features. And then .NET Framework 3.5 (includes .NET 2.0 and 3.0) as shown in the fig below:
Then click on Next which will open the “Confirm installation selections” dialog box. There choose the checkbox “Restart the destination server automatically if required.” Then click on Install.
You may like the following windows tutorials:
- Create Windows Virtual Machine in Microsoft Azure Step by Step Guide
- Download and install GitHub for windows (‘git’ is not recognized as an internal or external command)
- How to create a new user in windows server 2016
- How to install and configure Active directory windows server 2012 r2
- Install and configure active directory and a domain controller in windows server 2016
- Download and Install SQL Server 2014 SP1 in Windows Server 2016
- How to enable hibernate in windows server 2016?
- How to enable audio service in Windows Server 2016 or Windows Server 2012 r2?
The above step will install .Net framework 3.5 in windows server 2012 r2 machine. After this, I can proceed with SharePoint 2016 installation steps.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com