Error registering plugins and/or workflows. Plug-i

2019-02-16 18:05发布

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 namespace of my project, its throwing an error "Error registering plugins and/or workflows. Plug-in assembly does not contain the required types or assembly content cannot be updated." while deploying it. And I have changed the namespace in .crmregister file, project properties and in source code. Then whats the problem here.?

15条回答
Rolldiameter
2楼-- · 2019-02-16 18:37

Unregister the plugin, then register it again.

查看更多
▲ chillily
3楼-- · 2019-02-16 18:37

I've gotten this when the preImage element was placed after the postImage element in the register. Swapping their places fixed it.

查看更多
女痞
4楼-- · 2019-02-16 18:39

Are you referencing any other assemblies (like Microsoft.Xrm.Sdk)? If so, they need to be merged using a tool like ILMerge if you are deploying to the database. If you are deploying to disk they also need to be present in the assembly folder or installed in the GAC.

查看更多
登录 后发表回答