Unable to Register 32 bit Plugin Assemblies in Microsoft Dynamics CRM 2011

When attempting to register a 32bit plugin assembly in a Microsoft Dynamics CRM 2011 deployment, users may encounter the following error:

"Unable to load the specified plug-in assembly"

If one enables platform tracing within Microsoft Dynamics CRM, additional information is provided:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Crm.Sdk, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
   at System.Reflection.Assembly._GetExportedTypes()
   at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path) in C:\Users\administrator.DDCRM\Desktop\PluginRegistration 2.2\AssemblyReader.cs:line 59
   at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path)
   at PluginRegistrationTool.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly) in C:\Users\administrator.DDCRM\Desktop\PluginRegistration 2.2\RegistrationHelper.cs:line 49
   at PluginRegistrationTool.PluginRegistrationForm.btnLoadAssembly_Click(Object sender, EventArgs e) in C:\Users\administrator.DDCRM\Desktop\PluginRegistration 2.2\PluginRegistrationForm.cs:line 127


This issue is caused by the bitness of the assembly being registered.  There is a restriction with any 32bit plugin assembly where they have to be registered in Microsoft Dynamics CRM 2011 using a x86 version of the plugin registration tool.  This is documented in the Microsoft Dynamics CRM 2011 SDK but the documentation fails to mention that this restriction applies to any pre-existing Microsoft Dynamics CRM 4.0 plugin assemblies as well.


Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.