BadImageFormatException : When updating a Dynamics CRM 2011 Plug-in

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 !

Advertisements

About mytechlifedays

Its been a wonderful learning period over the last 6 years in the IT industry , getting exposed to whole lot of technologies and ideas. The hurdles and the crisis that came along have been wonderful experience ... And now its time to pen them down so that let some others execute faster and easily with these information .....
This entry was posted in MS CRM and tagged , . Bookmark the permalink.

One Response to BadImageFormatException : When updating a Dynamics CRM 2011 Plug-in

  1. Nishant Rana says:

    Reblogged this on Nishant Rana's Weblog and commented:
    Unhandled Exception: System.BadImageFormatException: Could not load file or assembly ‘Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’

Leave a Reply ! It would be always appreciated ! :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s