none
CRM2011用のSharePoint2013のプラグインに関して RRS feed

  • 質問

  • こんにちは。CRM2011用のSharePoint2013のプラグインにてランタイムエラーが発生してしまい,困っております。

    SharePointのPG部分をコメントにすると動くのですが,SharePointのコードを使おうとすると,以下のランタイムエラーが発生します(プラグインはUpdateのPre-Validationに付けています)。

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Could not load file or assembly 'Microsoft.SharePoint.Client, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. 指定されたファイルが見つかりません。Detail: 

    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ErrorCode>-2147220956</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>Could not load file or assembly 'Microsoft.SharePoint.Client, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. 指定されたファイルが見つかりません。</Message>
      <Timestamp>2013-12-17T10:53:10.3163993Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText>

    Microsoft.Xrm.Sdk.dllや,Microsoft.SharePoint.Client.dllがサーバーに先に登録していないとだめなのかと思い,PluginRegistration.exeで、登録しようとした際に以下のエラーにて失敗しました。

    GAC登録

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unable to load plug-in assembly.
    Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <ErrorCode>-2147204719</ErrorCode>
      <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>Unable to load plug-in assembly.</Message>
      <Timestamp>2013-12-17T10:51:42.4251094Z</Timestamp>
      <InnerFault>
        <ErrorCode>-2147204719</ErrorCode>
        <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <Message>Unable to load plug-in assembly.</Message>
        <Timestamp>2013-12-17T10:51:42.4251094Z</Timestamp>
        <InnerFault i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <TraceText i:nil="true" />
    </OrganizationServiceFault>

    Server stack trace: 
       場所 System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       場所 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       場所 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       場所 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]: 
       場所 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       場所 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       場所 Microsoft.Xrm.Sdk.IOrganizationService.Update(Entity entity)
       場所 Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.UpdateCore(Entity entity)
       場所 Microsoft.Crm.Tools.PluginRegistration.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type)
       場所 Microsoft.Crm.Tools.PluginRegistration.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e)

    何かお気付きの点があれば,ご教示願えませんでしょうか。

    どうぞよろしくお願いいたします。


    2013年12月17日 12:26

すべての返信

  • 自己レスになりますが,Microsoft Dynamics CRM\Server\bin\assembly に,直接Sharepoint関連のDLLをいれることで解決致しました。

    お騒がせいたしました。


    2013年12月18日 6:44