Install .NET 3.5 Framework on Windows Server 2012 R2

In this article, we will show

  • How to install .NET 3.5 Framework Features on Windows Server 2012 R2 (Offline)
  • How to install .NET 3.5 Framework Features on Windows Server 2012 R2 (Online)

install .Net Framework3.5 Features on windows server 2012


Scenario

When we tried to install Workflow Manager on SharePoint 2013 environment with Windows Server 2012 R2,  we got the below message:

The .Net Framework 3.5 is not installed on your server.

So that we tried to add a new feature from Server Manager.

add feature from server manager.png

We followed the wizard until we got the Features section then we checked the .NET Framework 3.5 Features then we clicked on Install button.

install .Net Framework3.5 Features on windows server 2012

But unfortunately, we got the below error:

The feature Installation failed because the source files could not be found!

net-framework-3-5-features-installation-error

Again, we tried to specify an alternative source path as shown below.

Specify the alternate source path in Server manager

Then we specified the source path to .Net Framework 3.5 offline package that located in a newly created folder located in path E:\sources\SxS   > OK > Install.

Specify the alternate source path sources sxs.png

But unfortunately, we still can’t enable the .Net 3.5 Framework feature!!

Cause :

In Windows Server 2012 R2, the .Net Framework 3.5 feature is an on-demand feature that its files are not saved on the server with the windows installation due to decreasing the disk space taken by the Operating System.


Install .NET Framework 3.5 Features on Windows Server 2012 R2 (Offline)

The .Net 3.5 Framework feature should be installed from the below sources:

  • The same Windows media that was used when the Windows is being installed.
  • The Windows media with the same current installed version (eg. If Windows server 2012 R2 has been installed on your machine you must use installation media for Windows Server 2012 R2). If you don’t have the same Windows installation media. you can downloaded the coressponding Windows ISO for your current installed Windows from Microsoft as a trial version.
Steps:
  • Mount the Windows installation media (ISO/CD) with the same version of the current installed windows.
  • Specify the alternative source path to U:\Sources\SXS
    • Note: U:\ is the drive that Windows Server 2012 ISO has mounted.

Specify the alternate source path in Server manager

  • Click install > wait a moment till the feature installed successfully. 🙂

Install .Net Framework3.5 Features on windows server 2012 R2

Alternatively, you can use the Deployment Image Servicing and Management (DISM) command-line tool to enables the .NET Framework 3.5 feature without internet connection as the following:

Note: Deployment Image Servicing and Management (DISM) is a command-line tool that is used to mount and service Windows images before deployment. for more details check DISM – Deployment Image Servicing and Management.

  • Open Command prompt as Administrator.
  • Type the below cmdlet.
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs
  • d:\ is the drive that the Windows Server ISO has mounted.
  • /All to enable all parent features of the specified feature.
  • /LimitAccess to prevent DISM from contacting Windows Update/WSUS.
  • /Source to specify the location of the files that are needed to restore the feature.

Install offline .Net Framework3.5 Features via DISM


Install .NET 3.5 Framework Features on Windows Server 2012 R2 (Online)

You can also use the Deployment Image Servicing and Management (DISM) command-line tool to enables the .NET Framework 3.5 feature with an internet connection as the following:

  • Open Command prompt as Administrator.
  • Type the below cmdlet.
DISM /online /enable-feature /featurename:NetFx3 /all

Activated .Net Framework3.5 Features via DISM


Conclusion 

In this article, we have explained How to install .NET Framework 3.5 feature on Windows Server 2012 (Online/Offline)

See Also

 

Advertisements

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