In this post we will discuss how to resolve below issue which comes when trying to install .Net framework using a setup file in Windows Server 2012 R2. The error message coming as: "Windows Server roles and features cannot be automatically installed or uninstalled via the Windows Features Control Panel". The error coming like below:
Now Open Server Manager, then in "Configure this local server". Then click on Add roles and features as shown in the fig below:
Then click on Next -> Next till Features option. There 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:
Once you will get the succesful message, it will be installed successfully.