Windows Server AppFabric is not correctly configured In SharePoint 2013 / 2016 / 2019

In this article, I will fix the below SharePoint 2016 / 2013 issue:

Windows Server AppFabric is not correctly configured.You Should uninstall Windows Server Appfabric and reinstall it using The SharePoint Products Preparation Tool.


Scenario

If you don’t have an internet connection, and you need to install SharePoint Server  2013, so you will need to install SharePoint Server prerequisites offline without using Preparation Tool.

Therefore, you should install the following roles & features manually.

  • Roles:
    • Application Server.
    • Web Server (IIS).
    • EDIT: IIS 6 Management Console (h/t Darma).
  • Features:
    • ASP.NET 4.5.
    • Windows Identity Foundation 3.5.

Then download the below files:

After all the prerequisites have been installed, I tried to run SharePoint setup file. but I got the below error:

Windows Server AppFabric is not correctly configured.You Should uninstall Windows Server Appfabric and reinstall it using The SharePoint Products Preparation Tool.

Windows Server AppFabric is not correctly configured.You Should uninstall Windows Server Appfabric and reinstall it using The SharePoint Products Preparation Tool.


Cause

The Windows Server AppFabric is not correctly configured because of one of the following causes:

  • You don’t have an internet connection and you have tried to install the Windows Server AppFabric manually by double-clicking on its Setup file!
  • You have an internet connection but you have tried to install the SharePoint Server 2013 RTM on Windows Server 2012 R2.
  • If your server is configured as a Workgroup, you will not be able to install AppFabric for Windows Server.

Solution

Offline install Windows Server AppFabric for SharePoint 2016 / 2013

To install ‘Windows Server AppFabric Setup_x64.exe‘ file, follow the below steps:

Note: In case you have already installed the Windows Server AppFabric by double-clicking on its Setup file! so you should uninstall it first from the control panel, then reboot the server!

  • Move WindowsServerAppFabricSetup_x64.exe to drive C:/
  • Type the below command line in PowerShell
1
.\WindowsServerAppFabricSetup_x64.exe /i CacheClient,CachingService,CacheAdmin /gac
  • If you got any error like

Command Line syntax error.  Duplicate command line argument.  Parameter name: Install

Command Line syntax error - Duplicate command line argument Parameter name Install

  • Try to use the below cmdlet
1
2
.\WindowsServerAppFabricSetup_x64.exe/i CacheClient","CachingService","Cache
Admin /gac

In SharePoint 2016, the same command should work properly,

Note: In SharePoint 2016, you will need to install the Cumulative Update 7 (3092423) for Microsoft AppFabric 1.1

  •  Reboot the server > Run SharePoint Installation again where the message error should not be listed again.

Note: SharePoint Server 2013 RTM is not supported on Windows Server 2012 R2, to be able to install SharePoint 2013 , you have the below options:

  • Install SharePoint Server 2013 with SP1 will be working propely on Windows Server 2012 R2.
  • Install SharePoint Server 2013 RTM on Windows Server 2012 NOT Windows Server 2012 R2.
Archives