No service for type 'Sitecore.Publishing.Service.ResourceFiles.IResourceFilesSynchronizationManager' has been registered
The Problem
Recently, an ex-colleague reached out to me for a problem he was facing. His setup included Sitecore 10.3.1 with Sitecore Publishing Service, which was operating without any problems. However, challenges emerged when he tried to deploy Sitecore Publishing Module DLLs and configurations to our CD server. After transferring SPS files to the CD server, below error was triggered -
The Solution
We were quite perplexed by this situation as we had previously executed similar steps in our previous setup on Sitecore 9.3. We began our investigation and stumbled upon a stackexchange post that discussed the same error, but with different steps to reproduce it. Despite ensuring that all the necessary files (including the .dat resource files) were transferred to the CD server, the issue persisted.
In an attempt to troubleshoot, we decided to remove the configurations first, followed by the DLLs, to observe the outcome. Surprisingly, when we removed the DLLs, the error disappeared and the CD server started functioning properly.
Upon further examination, we discovered that we had been deploying all the DLLs from the items/bin folder in the SPS package. However, we realized that we only needed to deploy the following DLLs:
- Sitecore.Publishing.Service.dll
- Sitecore.Publishing.Service.Abstractions.dll
- Sitecore.Publishing.Service.Delivery.dll
- Sitecore.Framework.Conditions.dll
We unintentionally included the following DLLs, which were the cause of the error:
- Sitecore.Publishing.Service.Client.dll
- Sitecore.Publishing.Service.Client.Http.dll
- Sitecore.Publishing.Service.Client.Services.dll.
Removing these unwanted DLLs fixed the issue. Hope it helps you!
Comments
Post a Comment