Install .NET Framework 3.5 on Windows Server 2012 R2

Nowadays most of the windows applications need .NET Framework 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:

  • 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.Install .net3.5 Step01
  2. Click Next.Install .net3.5 Step02
  3. On the Select installation type screen, select Role-based or feature-based installation.Install .net3.5 Step03
  4. Select the target server.Install .net3.5 Step04
  5. Click Next.Install .net3.5 Step05
  6. On the Select features screen, check the box next to .Net Framework 3.5 Features.Install .net3.5 Step06
  7. On the Confirm installation selections screen, just click Install.Install .net3.5 Step07

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…

Error .net3.5 Step01

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.

framework_ps

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.

Alternative path Step 01Then 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)

Alternative path Step 02

Finally click Install to finish the installation process.

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

dism-netfx3-cmd

The same thing in Powershell looks like this:

Add-WindowsFeature NET-Framework-Core -Source D:\sources\sxs
Advertisements
This entry was posted in Windows Server 2012 R2 and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s