Troubleshooting issues after the deployment of the Sitecore Connect for Content Hub 5.0.0 in PaaS environment


Description

This article describes steps for troubleshooting the most frequent issues that might occur after the Sitecore Connect for Content Hub 5.0.0 has been deployed to Sitecore solutions in Azure Web Apps:

 

Scenario 1 - Browse Sitecore DAM button of the Image field does not work

Symptoms

When the Sitecore Connect for Content Hub 5.0.0 module has been deployed, the Browse Sitecore DAM button appears above the Image fields. However, the button can be non-functional.

Troubleshooting steps

  1. Check the Control field of the sitecore/system/Field types/Simple types/Image item in the Core database.
  2. In case the field contains the "content:Image" value, clear the field and save the item.

 

Scenario 2 - System.Runtime.CompilerServices.Unsafe assembly version conflict

Symptoms

The following error might occur after the Sitecore Connect for Content Hub 5.0.0 has been deployed:

Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, 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)

Troubleshooting steps

Add the below assembly binding to the web.config file:

<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.0"/>
</dependentAssembly>