Updating Microsoft AppFabric
Monavar Kazemi
Senior SharePoint Administrator | MS office365 | Dynamics 365 | Migration Expert
Updating AppFabric
If you think that updating App Fabric is easy, you are very wrong!
It is not possible to update it just by running Cumulated Update for AppFabric, by doing this AppFabric Caching Service will be stopped and you cannot start it manually.
To update AppFabric, we must do the following:
1-???View the list of Distributed Cache servers by running the following command in SharePoint Management Shell:
Get-SPServiceInstance | ? {($_.service.tostring()) -eq "SPDistributedCacheService Name=AppFabricCachingService"} | select Server, Status
2-???1- Enter the following path in the Registry Editor (regedit.exe):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
If the version is higher than 4.5.51209, right-click on the V4 folder and select Properties, and in the Security tab, change the Owner to the SPFarm user and click OK. Then we take Properties again and give Full Control access to the SPFarm user in the security tab.
For all its sub-folders, we give Full Control access to the SPFarm user and then change the Version to 4.5.51209 in all sub-folders.
3-???On one of the Distributed Cache Servers in SharePoint Management Shell, we type the following commands:
Stop-SPDistributedCacheServiceInstance –Graceful
Remove-SPDistributedCacheServiceInstance
4-????Check the list of Distributed Cache Servers with the following command:
Get-SPServiceInstance | ? {($_.service.tostring()) -eq "SPDistributedCacheService Name=AppFabricCachingService"} | select Server, Status
5-????Now update AppFabric to the latest version manually. (e.g. AppFabric-KB3092423-x64-ENU.exe)
6-????After the update, we use the following commands to check the version:
(Get-ItemProperty “C:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules\DistributedCacheConfiguration\Microsoft.ApplicationServer.Caching.Configuration.dll” -Name VersionInfo).VersionInfo.ProductVersion
CU1: 1.0.4639
CU2: 1.0.4644
CU3: 1.0.4652.2
CU4: 1.0.4653.2
CU5: 1.0.4655.2
CU6: 1.0.4656.2
CU7: 1.0.4657.2
领英推荐
For Download AppFabric:
https://support.microsoft.com/en-us/topic/cumulative-update-7-for-microsoft-appfabric-1-1-for-windows-server-12908be3-ceee-cb28-5186-b8fb381a6c50
7-???If Background Garbage collection fix was already configured on all DCs, this step is not needed.
To activate it, go to the following path:
%ProgramFiles%\AppFabric 1.1 for Windows Server\
And open the DistributedCacheService.exe.config file in Notepad. (If an access error is displayed, take ownership and give Full Control access to the SPFarm user.
Then enter the following codes in the displayed field and save.
<appSettings>
<add key="backgroundGC" value="true"/>
</appSettings>
8-????reset IIS with the iisreset /noforce command.
9-????Run Service Instance with the following command in SharePoint Management Shell:
Add-SPDistributedCacheServiceInstance
10- ?To ensure that the service is running, use the following command:
Get-SPServiceInstance | ? {($_.service.tostring()) -eq "SPDistributedCacheService Name=AppFabricCachingService"} | select Server, Status
11- Make sure that Cache host is up and working with the following commands:
Use-CacheCluster
Get-CacheHost
12- Do these steps for the next Distributed Cache Server.
13- ?For other servers where SharePoint is installed, we must perform steps 5, 6 and 7.
Reference: