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.?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I just encountered the exact same issue while toying with the CRM Toolkit.
This is how I solved the issue:
I didn't have to manually edit anything.
If you had some automatically generated classes, e.g. Plugins which you had created via right-click Create Plug-in and then you've deleted it, you have to cleanup it's traces in RegisterFile.crmregister. If it was a plugin, you need to delete a whole branch with it's name.
Make sure that your plugin/workflow class is a public class.
I got the same error because my plugin class was private.
Check RegisterFile.crmregister workflow property TypeName must not contain any spaces.
I changed the signing key file and got the error, changing it back to the previous key file solved the issue for me.
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...
done.
(ok just noticed Masoud Ghabachi mentioned this ages ago...)