When you run Microsoft SharePoint Foundation 2013 with Service Pack 1 Setup, SharePoint Server 2013 with Service Pack 1 Setup, or Project Server 2013 with Service Pack 1 Setup on a computer that has the Microsoft .NET Framework 4.6, 4.6.1, or 4.6.2 installed, you
receive the following error message:
Setup is unable to proceed due to the following error(s): This product requires Microsoft .Net Framework 4.5.
- - SharePoint 2013 SP1 pre-requisite installed successfully along with MS Recommended Windows.
- - Windows update essential updates the .Net Framework to version 4.6. This causes a false alert for Sharepoint 2013 installer that pre-requisite .Net Framework 4.5 is required.
Cause of Issue:
This problem occurs because the SharePoint Setup and Project Server Setup programs do not recognize the .NET Framework 4.6, 4.6.1, or 4.6.2 as a supported version of the .NET Framework.
Resolution 1: SharePoint Service Pack 1 Fix
If you already have a .NET Framework version 4.6 installed then follow the following steps to solve the above installation issue.
- Extract the installation media to a writable location
- - If your installation media is an executable file (.exe), extract the files and folders from the executable file to a writable location by running the following command at a command prompt:
<executable file name> /extract:<path to writable location>
For example, run the following command:
- If your installation media is an ISO or IMG disc image (.iso or .img), mount the disc image, and then copy the files and folders from the disc image to a writable location.
- Download the compressed (.zip) file that contains the fix that matches the product you're installing:
- Open the .zip file.
- Copy the following Setup support file, as appropriate, from the .zip file into the "updates" folder in your writable location.
- - SharePoint Foundation 2013 with Service Pack 1: wsssetup.dll
- - SharePoint Server 2013 with Service Pack 1: svrsetup.dll
- - Project Server 2013 with Service Pack 1: svrsetup.dll
- Run Setup.exe from the writable location to start SharePoint Setup or Project Server Setup. Setup will use the support file that contains the fix that you've copied into the "updates" folder.
Resolution 2: Confirm the .Net Version
Since .Net 4.6 is an in-place upgrade of .Net 4/4.5/4.5.1/4.5.2 SharePoint has an issue with finding .Net 4.5.x after applying 4.6. So removing the associated KB for .Net 4.6 to see if this is reversible should you accidentally deploy this to a dev / test farm.
- - Open PowerShell and run the following command.
- - Set-Location 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client'.
- - Get-ItemProperty -Path . | Select-Object Version.
The output is shown as below:
- - Open Windows Update and find the KBnumber in Microsoft .NET Framework 4.6.1 for Windows Server 2012 R2 for x64 (KB3102467).
- - Click on Installed Updates.
- - Browse to find KB number KB3102467
- - Right Click on the KB and Click on Uninstall and confirm Yes.
- - After restarting the server and run the following PowerShellcommand again to confirm the .Net Framework version.
- - Set-Location 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client'
- - Get-ItemProperty -Path . | Select-Object Version
Now you can continue the installation of SharePoint 2013 SP1. Run an Windows update after Sharepoint 2013 is installed which will possibly install new updates for SharePoint.