Publishing Serviceの更新でSitecore XP インスタンスがクラッシュする


解説

Sitecore Publishing Service(SPS)を更新すると、一部のアセンブリへの誤った参照が原因でエラーが発生します。たとえば、.NET Framework 4.7.0以前がインストールされている状態でSPS モジュールを3.1.3バージョンにアップグレードすると、System.Net.HttpおよびSystem.Diagnostics.DiagnosticSource アセンブリがロードできなくなります。以下の例外がログに出力されます:

System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
...
Exception: Sitecore.Framework.Publishing.Client.Http.HttpServiceResponseException
Message: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

この問題は、Sitecore Publishing Service 3.1 Update-3で発生します。

解決策

この問題を解決するには、以下のいずれかのオプションを検討してください: