Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugin Registration Accident - CRM 2016 SDK Against a CRM 2013 Instance.

(0) ShareShare
ReportReport
Posted on by 240

Hi,

I'm wondering if anyone has untangled this problem before?

I accidentally registered a Plugin compiled against the CRM 2016 SDK in a CRM 2013 installation (an internal development system). 

After realising my mistake, I unfortunately get the following error message when trying to Unregister the plugin:

Crm Exception: Message: Unable to load the plugin type: Customer.Plugin.SetDate.Plugins.ProcessDate, ErrorCode: -2147204720, InnerException: Microsoft.Crm.CrmTypeLoadException: Unable to load the plugin type: Customer.Plugin.SetDate.Plugins.ProcessDate ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=8.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)

I can understand the error and why it has occurred. Somehow, CRM needs to resolve that reference when trying to unregister the plugin. But of course in CRM 2013 that version of the plugin does not exist.

Any ideas?

*This post is locked for comments

  • Suggested answer
    Emre GULCAN Profile Picture
    Emre GULCAN 2,379 on at
    RE: Plugin Registration Accident - CRM 2016 SDK Against a CRM 2013 Instance.

    Hi,

    Probably it's about your Xrm.Sdk dll's version. Please add correct reference dll (for 2013) rebuild your plugin and update existing plugin.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,399 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans