Error registering plugins and/or workflows. Plug-in assembly does not contain the required types or assembly content cannot be updated

后端 未结 15 1686
谎友^
谎友^ 2021-01-12 01:48

I implemented one custom workflow in in Visual Studio 2010 using CRM 2011 Developer Toolkit. It was working fine with system generated namespace. But, when I changed the nam

15条回答
  •  萌比男神i
    2021-01-12 01:57

    This can happen if you change/refactor the main class name of your plugin. (e.g. when the code analysis complains you have a spelling mistake and you fix it) This problem will only show up next time you do the deploy

    So if you've chnaged the name of your plugin class...

    1. In the Default CRM Solution delete your plugin from "Plugin-in Assemblies"
    2. Look in the RegisterFile.crmregister file of your plugin. on the XML tag you will see 3 references to your class name - some of these may not have been updated.
    3. update the names in this file and redeploy.

    done.

    (ok just noticed Masoud Ghabachi mentioned this ages ago...)

提交回复
热议问题