Home Microsoft Install .NET Framework 3.5 on Windows Server 2012 R2

Install .NET Framework 3.5 on Windows Server 2012 R2

by Lakindu Jayasena
1.2k views 8 mins read
netfx35

.NET Framework is very useful for most of the windows applications to work properly. So in the server operating systems, “Add Roles and Features Wizard”  in the server manager allows to install two different versions of .NET Framework (3.5 and 4.5).

In this post I’m going to show how to install .NET Framework 3.5 on Windows Server 2012 R2. So that you can easily use server manager to enable .NET Framework 3.5 in your local server or remote server.

Requirements to install .NET Framework 3.5

  • Windows Server 2012 R2 installation media.
  • Administrator user rights (The current user must be a member of local Administrators group).
  • If use remote installation, require network connectivity with target server.

Here the following steps are guide you how to do it by using the Add Roles and Features Wizard.

  1. In Server Manager, click Manage and then select Add Roles and Features to start the Add Roles and Features Wizard.

  2. Click Next.

  3. On the Select installation type screen, select Role-based or feature-based installation.

  4. Select the target server.

  5. Click Next.

  6. On the Select features screen, check the box next to .Net Framework 3.5 Features.

  7. On the Confirm installation selections screen, just click Install.

Troubleshooting

Sometimes, when you are try to install .NET Framework 3.5 according to above steps, the following error message may appears: “Installation of one of more roles, role services or features failed. The source files could not be found…

The reason for that error message is that .NET Framework 3.5 binary files are not saved to the server when the operating system is being installed. That is because to reduce the amount of disk space acquire by the OS. That concept called “Features on Demand” in Windows Server 2012.

You can check binary files are in the OS by using the following command on power-shell.

Before installing .NET Framework 3.5 manually, you have to insert the installation media (Windows Server 2012 OS disk). So then go through above steps and click “Specify an alternative source path” link in following window.

Then specify the path to the \sources\sxs folder on the installation media and then click OK. (in this example it is D:\source\sxs, where D:\ is a letter of the local DVD drive with a Windows Server 2012 distribution)

Finally click Install to finish the installation process.

Install using Command Prompt

The above mentioned same process can be performed by running one single command in command prompt.

dism /online /enable-feature /featurename:NetFX3 /all /Source:D:\sources\sxs /LimitAccess
  • /Online means that you need to upgrade your current OS, and not the image
  • /enable-feature/featurename: NetFX3/all means that it is necessary to install .NET Framework 3.5 with all its features
  • /Source is the path to the directory with Windows distribution, which contains the necessary components
  • /LimitAccess prevents accessing Windows Update

Install using PowerShell

The same thing in Powershell looks like this:

Add-WindowsFeature NET-Framework-Core -Source D:\sources\sxs

Related Articles

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.