Dynamic 导入插件解决方案包,提示: Assembly must be registered in isolation 错误

发布时间 2023-04-16 12:48:49作者: 30号少年

错误信息如下:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:lang="zh-CN">Action failed for assembly 'AccountManage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e80a7d7be12dede': Assembly must be registered in isolation.</faultstring><detail><OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ActivityId>78e7e4af-e2b3-4d73-a6df-043dbc72a141</ActivityId><ErrorCode>-2147220906</ErrorCode><ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"><KeyValuePairOfstringanyType><a:key>ApiExceptionSourceKey</a:key><a:value xmlns:b="http://www.w3.org/2001/XMLSchema" i:type="b:string">Plugin/Microsoft.Crm.ObjectModel.SdkMessageProcessingStepService</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiOriginalExceptionKey</a:key><a:value xmlns:b="http://www.w3.org/2001/XMLSchema" i:type="b:string">Microsoft.Crm.CrmException: Action failed for assembly 'AccountManage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e80a7d7be12dede': Assembly must be registered in isolation. ---&gt; Microsoft.Crm.CrmException: Action failed for assembly 'AccountManage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e80a7d7be12dede': Assembly must be registered in isolation.
在 Microsoft.Crm.Admin.AdminService.CrmPublisherService.VerifyPublisherTrustLevel(String fullyQualifiedName, Boolean isIsolated, Boolean isFullySigned, Boolean verifyFullTrust)
在 Microsoft.Crm.ObjectModel.PluginValidatorBase.Validate()
在 Microsoft.Crm.ObjectModel.SdkMessageProcessingStepServiceInternal`1.VerifyIsolationLevel(IBusinessEntity entity, ExecutionContext context)
在 Microsoft.Crm.ObjectModel.SdkMessageProcessingStepServiceInternal`1.Delete(BusinessEntityMoniker moniker, ExecutionContext context)
--- 内部异常堆栈跟踪的结尾 ---
在 Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
在 Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
在 Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;b__0()</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepKey</a:key><a:value xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/" i:type="b:guid">c0cabb1b-ea3e-db11-86a7-000a3a5473e8</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiDepthKey</a:key><a:value xmlns:b="http://www.w3.org/2001/XMLSchema" i:type="b:int">1</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiActivityIdKey</a:key><a:value xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/" i:type="b:guid">78e7e4af-e2b3-4d73-a6df-043dbc72a141</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiPluginSolutionNameKey</a:key><a:value xmlns:b="http://www.w3.org/2001/XMLSchema" i:type="b:string">System</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepSolutionNameKey</a:key><a:value xmlns:b="http://www.w3.org/2001/XMLSchema" i:type="b:string">System</a:value></KeyValuePairOfstringanyType></ErrorDetails><Message>Action failed for assembly 'AccountManage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e80a7d7be12dede': Assembly must be registered in isolation.</Message><Timestamp>2023-04-16T02:45:29.2461141Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource i:nil="true"/><InnerFault><ActivityId>78e7e4af-e2b3-4d73-a6df-043dbc72a141</ActivityId><ErrorCode>-2147220906</ErrorCode><ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Message>Action failed for assembly 'AccountManage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4e80a7d7be12dede': Assembly must be registered in isolation.</Message><Timestamp>2023-04-16T02:45:29.2461141Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource i:nil="true"/><InnerFault i:nil="true"/><OriginalException i:nil="true"/><TraceText i:nil="true"/></InnerFault><OriginalException i:nil="true"/><TraceText i:nil="true"/></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>

导致错误的原因:用的CRM管理员帐号

解决方案:用域部署管理员账号登录CRM,登录再重新导入