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
Solution:
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 tutorials:
- Download and install GitHub for windows (‘git’ is not recognized as an internal or external command)
- How to install and configure Active directory windows server 2012 r2
- How to enable hibernate in windows server 2016?
- How to enable audio service in Windows Server 2016 or Windows Server 2012 r2?
- One or more field types are not installed properly. Go to List settings page to delete these fields error in SharePoint 2013
- Windows Update service must be in running state error while installing AppFabric in Windows server 2012 R2
- Windows Server 2016 Installation Step by Step with Screenshots
- SharePoint 2013 Windows server AppFabric installation Error
- the update installer operation is unsuccessful error while installing Dell drivers
- SharePoint Designer Workflow 2013 Error: Windows Workflow Foundation, part of .Net Framework 3.0, must be installed to use this feature
- SharePoint 2016 installation errors
The above step will install .Net framework 3.5 in windows server 2012 r2 machine. After this, I can proceed with the SharePoint 2016 installation steps.
After working for more than 15 years in Microsoft technologies like SharePoint, Office 365, and Power Platform (Power Apps, Power Automate, and Power BI), I thought will share my SharePoint expertise knowledge with the world. Out audiences are from the United States, Canada, United Kingdom, Australia, New Zealand, etc. For my expertise knowledge and SharePoint tutorials, Microsoft has been awarded a SharePoint MVP(8 times), check out My MVP Profile. I have also worked in companies like HP, TCS, KPIT, etc.