Advertisements

Archive

Archive for August 6, 2011

“Plug-in assembly does not contain the required types or assembly content cannot be updated”- CRM 2011

August 6, 2011 3 comments

Hi,

    You may get this exception when you try to update the plug-in assembly using Plug-In registration tool.

Reasons:-

  • When you change a class name inside the plugin assembly and try to update the plug-in assembly using Plug-in registration
  • Here is another interesting scenario that could lead to the this exception
    • Assume  User 1 & User 2 are working on the same Plug-In assembly using Source Control
    • User 1 updated the assembly and registered the Plug-In but forgot to check in
    • Next day, User 2 would like to develop a plugin. He checks out latest source code(but User 1 plugin missing because User 1 did not check in the code)
    • When User 2 tries to update the plugin assembly in CRM 2011, he gets “Plug-in assembly does not contain the required types or assembly”, because of assembly version mismatch.

Fix:-

  • Try unregistering the assembly all together and re-registering the assembly after creating your new class; yes this means you will need to recreate your steps and images
 Hope it helps 🙂
Advertisements