插件注册工具- MS Dynamics 2013.插件程序集不包含所需的类型,或者无法更新程序集内容

本文关键字:程序集 插件 类型 或者 更新 包含所 工具 注册 MS Dynamics 2013 | 更新日期: 2023-09-27 18:03:00

我试图通过插件注册工具更新CRM Dynamics 2013中的插件,但它仍然显示相同的错误:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Plug-in assembly does not contain the required types or assembly content cannot be updated.
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorCode>-2147204725</ErrorCode>
  <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>Plug-in assembly does not contain the required types or assembly content cannot be updated.</Message>
  <Timestamp>2016-08-19T07:56:34.9589441Z</Timestamp>
  <InnerFault>
    <ErrorCode>-2147204725</ErrorCode>
    <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>Plug-in assembly does not contain the required types or assembly content cannot be updated.</Message>
    <Timestamp>2016-08-19T07:56:34.9589441Z</Timestamp>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <TraceText i:nil="true" />
</OrganizationServiceFault>
Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]: 
   at Microsoft.Crm.Tools.Libraries.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type)
   at Microsoft.Crm.Tools.AssemblyRegistration.PluginRegistrationViewModel.btnregisterClick()

RegisterFile。crmregister:

<?xml version="1.0" encoding="utf-8"?>
<Register xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/crm/2011/tools/pluginregistration">
  <Solutions>
    <Solution Assembly="MarkAsLostOpportunityWhenMarkedAccount.Plugins.dll" Id="e33d47a4-f3ba-440e-a693-2523a2ffe023" IsolationMode="Sandbox" SourceType="Database" />
  </Solutions>
  <XamlWorkflows />
</Register>

希望我的描述是好的。谢谢你的帮助。

插件注册工具- MS Dynamics 2013.插件程序集不包含所需的类型,或者无法更新程序集内容

这个错误可能有几个原因,最常见的是:

  • 类名更改
  • 签名密钥文件的更改
  • 引用外部dll(可以使用ILMerge修复)

您将需要恢复任何这些更改才能更新插件。第二个选项是注销插件并重新注册。