
I recently did an upgrade from 2011-2013-2015-2016. Sadly, my plugins are not working anymore. My guess is the Microsoft.Crm.ObjectModel is now suppose to be version 8 in CRM 2016. If my guess is correct, how do I changed this reference?
Any help will be much appreciated!
Error Log:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Could not load file or assembly 'Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Could not load file or assembly 'Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</Message>
<Timestamp>2017-08-29T15:02:46.6943843Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[SOME.3RD.PARTY.LIBRARY.NumberSequencePlugin]
[9951f58f-a8fa-e311-8cd8-00155d6c6001: SOME.3RD.PARTY.LIBRARY.NumberSequencePlugin: Create of invoice]
</TraceText>
</OrganizationServiceFault>
*This post is locked for comments
I have the same question (0)Did you update your plugins to reference the Microsoft.Xrm.Sdk and Microsoft.Crm.Sdk.Proxy (if required) versions 8?
Download the SDK for CRM 2016, and replace these references.
That should fix your issues.
Also make sure you use the Crm 2016 Plugin Registration Tool when making these changes.