Home > CRM 2011, Plug-Ins > “Object of type can not be converted to type ‘IBusinessEntity’ ” exception with crm Early Binding

“Object of type can not be converted to type ‘IBusinessEntity’ ” exception with crm Early Binding


You may come across below exception in Plug-Ins, while performing Create/Update operation  using CRM early binding

Exception: Unhandled Exception: System.InvalidOperationException: Object of type ‘entity_name‘ can not be converted to type ‘IBusinessEntity’

Fix :-

  • You need to add below line in your Plug-in project’s “AssemblyInfo.cs” file (Navigate to project folder and go to ..\Properties\AssemblyInfo.cs)

[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()]



  • Clean and Rebuild the solution
  • Register the plug-in assembly

Hope it helps 🙂


  1. MzM
    September 24, 2013 at 4:47 PM

    I’m using genrated proxyclass (via CrmSvcUtil.exe) as linked dll. It works fine in plugin, but in workflow throws the same exeption mantioned above.

    plugin dll, workflow dll and dll containing proxy classes are in the same directory.

    Any suggetion?



  2. January 27, 2014 at 10:54 AM

    Thanks a lot Rajeev Pentyala.
    You saved me

  3. Krish
    March 2, 2015 at 9:58 PM

    Same error happens during workflow custom activity execution as well, though I added the assembly entry in workflow project as well.

  1. No trackbacks yet.

Leave a Reply

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: