CRM 2011 – Error registering plugins and/or workflows. The resource string “ErrorSerializingRegFile” for the “RegisterPlugin” task cannot be found

I got this error today. whilst trying to deploy my updated CRM 2011 plugin

Error      1              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.           C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.12.targets             176         4              CrmPackage

 

This is one of those frustrating errors because to my knowledge nothing had really changed.  This forum post was very useful and set me off in the right direction.

http://social.microsoft.com/Forums/en-US/16f85a83-236d-4789-b3e4-02e6d4a4e5f1/errorserializingregfile-plugin-deployment-error?forum=crm

Now I have had this problem before and will no doubt have this problem again in the future.  The reason for the problem in this case was because RegisterFile.crmregister file was read only.  When you click deploy visual studio will try and write to this file and was failing because it couldn’t write to it.

So to resolve the problem you need to check out or make editible the RegisterFile.crmregister file.  Deploy again and it will hopefully work without any problems