PluginType not found in PluginAssembly which has a total of [0] plugin/workflow activity types.

Today while updating one of my plugin assembly in plugin registration tool, I got the below error.

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: PluginType  not found in PluginAssembly which has a total of [0] plugin/workflow activity types.
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ActivityId>2b06487c-19ac-4d04-9b0f-0d8c95aa2eb3</ActivityId>
  <ErrorCode>-2147204725</ErrorCode>
  <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <a:key>ApiExceptionSourceKey</a:key>
      <a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Plugin/Microsoft.Crm.ObjectModel.PluginAssemblyService</a:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <a:key>ApiOriginalExceptionKey</a:key>
      <a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Microsoft.Crm.CrmException: PluginType not found in PluginAssembly  which has a total of [0] plugin/workflow activity types. ---&gt; Microsoft.Crm.CrmException: PluginType not found in PluginAssembly which has a total of [0] plugin/workflow activity types.

After a bit of research, I found that I forgot to change the “Copy Local” property to false of “Microsoft.Xrm.Sdk” and “Microsoft.Crm.Sdk.Proxy” dlls. In our case, we are using ILMerge to merge different dlls but these Microsoft dlls should not be part of the Merged dll. After setting the “Copy Local” property to “false”, Plugin assembly updated sucessfully.

Hope it helps…..

8 thoughts on “PluginType not found in PluginAssembly which has a total of [0] plugin/workflow activity types.

  1. hi i try to debug and i use PRT and get this error any solution, and i can update the plugin but i can debug

  2. Hi Phani,
    yes we are trying to debug to make some changes to an existing workflow and when I try to do the profile workflow it gives me this error:

    PluginType [ProfiledTypes.ProfilerTypea7970bde9815495f9f98331e5b71fc04] not found in PluginAssembly [2eebb6661adc409298abf76772a66e0e_None_Profiled, Version = 9.0.0.0, Culture = neutral, PublicKeyToken = a857a = 8508af

    additionally I manage to update the workflow but it does not allow me to do profilling to debug

    1. this is the entire error message:
      PluginType [ProfiledTypes.ProfilerTypea7970bde9815495f9f98331e5b71fc04] not found in PluginAssembly 2eebb6661adc409298abf76772a66e0e_None_Profiled, Version=9.0.0.0, Culture=neutral, PublicKeyToken=a857aaf2e8055754 which has a total of [1] plugin/workflow activity types.

      1. hi Phani,

        sorry to ask in the wrong post, yes when i want to the start profile for my existing workflow i have this error, please if you know why this happen i would be grateful with you, because i try almost everything i found in the internet without success

        thanks,

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s