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
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.
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...)
Check RegisterFile.crmregister workflow property TypeName must not contain any spaces.
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.
apart of above cases, check .snk file or .pfx file. Does it change in your second deployment.
in this case try to use old source code or else you need to re register the plug/workflow.
You may need to check if the plugin with the same name exists as a registered plugin on the organization. Unregister the plugin and register the assembly and steps again.