在线注册 dynamics 365 crm 插件程序集时出错

Error registering Plugin Assembly for dynamics 365 crm online

我最近更换了电脑,不得不将我的存储库克隆到一台新电脑上。一切正常,我没有收到构建错误或警告,但是,当我转到 运行 SPKL 部署 plugins.bat 时,我收到以下错误:

我收到错误代码:-2147220970。不知道那是什么意思.. 如果有人可以指导我如何重新获得对 spkl 的访问权限,因为我需要它来进行持续集成!

连插件注册工具(sdk提供)也显示如下错误:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An unexpected error occurred.
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ActivityId>56924dfd-6d03-4ac1-8e6b-d0341bc81da3</ActivityId>
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>An unexpected error occurred.</Message>
  <Timestamp>2018-09-15T02:11:55.2459404Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault>
    <ActivityId>56924dfd-6d03-4ac1-8e6b-d0341bc81da3</ActivityId>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>System.FormatException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #ED7531F1</Message>
    <Timestamp>2018-09-15T02:11:55.2459404Z</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>

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.RegisterAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly)
   at Microsoft.Crm.Tools.AssemblyRegistration.PluginRegistrationViewModel.btnregisterClick()

我将目标框架更改为 4.5.2,Microsoft.CrmSdk.CoreAssemblies 和 Microsoft.CrmSdk.CoreTools 分别更改为 v8.2.0.2 和 v8.2.0.5,BOOOM,成功了。

我想你必须留意组织当前使用的版本!