Share via


Windows Server 2012 R2 Troubleshooting: .NET Framework 3.5 installation failure (Offline/Online/GPO)

Introduction

In this article, we will explain how to

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

https://gallery.technet.microsoft.com/site/view/file/182768/1/install%20.Net%20Framework3.5%20Features%20on%20windows%20server%202012.png

Scenario

When we tried to install and configure 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.

https://gallery.technet.microsoft.com/site/view/file/182771/1/add%20feature%20from%20server%20manager.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.

https://gallery.technet.microsoft.com/site/view/file/182768/1/install%20.Net%20Framework3.5%20Features%20on%20windows%20server%202012.png

But unfortunately, we got the below error:

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

https://gallery.technet.microsoft.com/site/view/file/182767/1/net-framework-3-5-features-installation-error.png 

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

https://gallery.technet.microsoft.com/site/view/file/182766/1/Specify%20the%20alternate%20source%20path%20in%20Server%20manager.png

Then we specified the source path to .NET Framework 3.5 offline package > OK > Install.

https://gallery.technet.microsoft.com/site/view/file/182765/1/Specify%20the%20alternate%20source%20path%20sources%20sxs.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 during the Windows installation due to decreasing the disk space taken by the Operating System. So The feature Installation failed because the source files could not be found!

Install .NET Framework 3.5 Features (Offline)

Without Internet Connection, you should be aware of the .NET Framework 3.5 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.
    • Note: If you don't have the same Windows installation media. you can download the corresponding 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.

https://gallery.technet.microsoft.com/site/view/file/182766/1/Specify%20the%20alternate%20source%20path%20in%20Server%20manager.png

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

https://gallery.technet.microsoft.com/site/view/file/182764/1/Install%20.Net%20Framework3.5%20Features%20on%20windows%20server%202012%20R2.png

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:

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.

DISM Steps

  • 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.

https://gallery.technet.microsoft.com/site/view/file/182762/1/Install%20offline%20.Net%20Framework3.5%20Features%20via%20DISM.png

Install .NET 3.5 Framework Features Online

In case you have Internet Connection, You can also use the Deployment Image Servicing and Management (DISM) command-line tool to enables the .NET Framework 3.5 feature as the following:

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

https://gallery.technet.microsoft.com/site/view/file/182763/1/Activated%20.Net%20Framework3.5%20Features%20via%20DISM.png

Install using Group Policy

The Group Policy setting Specify settings for optional component installation and component repair is located at Computer Configuration\Administrative Templates\System in Group Policy Editor.

repeat step with alter path it will work.

Conclusion

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

Reference

See Also

Back To Top