Tuesday 29 April 2014

CRM 2011 - Error registering plugins and/or workflows. The resource string "ErrorSerializingRegFile" for the "RegisterPlugin" task cannot be found. Confirm that the resource name "ErrorSerializingRegFile" is correctly spelled, and the resource exists in the task's assembly.

This is very common error which we get while deploying CRM 2011 plugins solution using Developer Tool Kit. I have experienced this only where source is kept in TFS. I have used SVN in past and have not had any issues. But once we migrated to TFS we started getting this error. 

I have seen many people over the internet and new starters in my team asking about the same error. So I thought about writing this blog.

Error: Error registering plugins and/or workflows. The resource string "ErrorSerializingRegFile" for the "RegisterPlugin" task cannot be found. Confirm that the resource name "ErrorSerializingRegFile" is correctly spelled, and the resource exists in the task's assembly.



Cause: When we deploy the solution using developer tool kit in Visual studio, it tries to update RegisterFile.crmregister. Because its checked in to TFS, system fails to check-out and update the file. 

Solution: Checkout the RegisterFile.crmregister file manually and deploy again.


I hope it will help many people.

Happy Coding.

P S Hayer
( ਪ੍ਰੇਮਜੀਤ ਸਿੰਘ ਹੇਰ )

Please check my other (non-CRM) blog here: Programming Blogs