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.
Note: The screenshots has been deleted for some unknown reasons. Please following the steps.
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 install .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.
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.
You may also like:
- How to install and configure Active directory windows server 2012 r2
- Installation of one or more roles role services or features failed
- SharePoint Designer Workflow 2013 Error: Windows Workflow Foundation, part of .Net Framework 3.0, must be installed to use this feature
- This edition cannot be upgraded error in Windows server 2016 datacenter
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. Our audiences are from the United States, Canada, the United Kingdom, Australia, New Zealand, etc. For my expertise knowledge and SharePoint tutorials, Microsoft has been awarded a Microsoft SharePoint MVP (9 times). I have also worked in companies like HP, TCS, KPIT, etc.