Saturday, July 21, 2012

CRM 2011–error when upgrading a CRM 4 database

I recently got an error that stated “could not load file or assembly 'Microsoft.Crm.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.” while I was importing a CRM 4 database into a CRM 2011 instance.

The way I managed to get around it was to add the following section right at the end of the CRMWeb’s web.config file (right before the ending configuration tag)

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Crm.Sdk" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="4.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
      </dependentAssembly>
    </assemblyBinding> 
</runtime>

No comments: