Error registering plugins and/or workflows. Plug-in assembly does not contain the required types or assembly content cannot be updated

后端 未结 15 1692
谎友^
谎友^ 2021-01-12 01:48

I implemented one custom workflow in in Visual Studio 2010 using CRM 2011 Developer Toolkit. It was working fine with system generated namespace. But, when I changed the nam

15条回答
  •  情话喂你
    2021-01-12 02:18

    In our case we used ILMerge and accidentally we merged Microsoft.Xrm.Sdk.dll into our plugin, removing this dll (copy local = false) fixed the issue.

    This merged dll was not working anyway as it throw security exception

    Inheritance security rules violated while overriding member: 'Microsoft.IdentityModel.Claims.ClaimsIdentity.System.Runtime.Serialization.ISerializeable.GetObjectData

    this GetObjectData was present in Microsoft.Xrm.Sdk.dll hence security exception from SandBox deployment.

提交回复
热议问题