Dynamics CRM Connect fails to connect to Dynamics CRM Online (or Dynamics 365)


Description

The Dynamics CRM Connect module might fail to establish the connection to Dynamics CRM Online (or Dynamics 365) services.

Sitecore communicates with Dynamics CRM using Dynamics CRM SDK. This SDK includes several DLLs that Sitecore redistributes with its products. Microsoft periodically rolls out changes to Dynamics CRM Online (now called Dynamics 365). Sometimes the changes appear to be incompatible with the released versions of the DLLs that Sitecore distributes.

The latest changes appear to be incompatible with CRM SDK 7, which is used by Dynamics CRM Connect 1.0—1.1.

Solution

To install the hotfix:

  1. Download the Dynamics CRM Provider for Data Exchange Framework 1.1 Hotfix 134785 package from the module's page.

    Note: The package contains only Microsoft.Xrm.Sdk.dll and Microsoft.Crm.Sdk.Proxy.dll files, so it is compatible with both 1.0 and 1.1 versions of the module.
  2. Install the downloaded Sitecore package using the Installation Wizard application.
  3. Add the following definitions under the assemblyBinding node in the Web.config file:
    <!-- START: Hotfix 134785 -->
    <dependentAssembly>
      <assemblyIdentity name="Microsoft.Xrm.Sdk" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
      <assemblyIdentity name="Microsoft.Crm.Sdk.Proxy" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
    </dependentAssembly>
    <!-- END: Hotfix 134785 -->
  4. Save the changes.