While I was trying to Update a Plugin via the Plugin registration Tool 2011, i got a following error:
Unhandled Exception: System.BadImageFormatException: Could not load file or assembly ‘Microsoft.Xrm.Sdk, Version = ” …
After Googling a lot came to know that this error can happen because of the mismatch of 64bit – 32bit.CRM 2011 needs a 64 bit environment while may be your plugin development happens in a 32 bit one.
There are two methods you could choose :
1. Place the tool in the 64bit folder of the sdk\bin folder, the error doesn’t occur anymore and you’ll be able to succesfully update your plug-in.
2. Have your solution of the plugin’s target platform changed to 64 bit or 32 bit . As CRM 2011 needs a 64 bit environment anyways, target platform can easily be chosen as 64 bit.
Thanks to Peter Gerritsen for giving an insight into this matter !