I am trying to write a plugin which has to search through files in sharepoint and return path. For I need to use assembly -- "'Microsoft.SharePoint.Client.Search, Version=16.1.0.0," How ever I am getting the below error.
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute): Sharepoint_searchkeyword.searchkeyword: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SharePoint.Client.Search, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>1fdb3743-9e2d-42df-a863-a99eedf6c9d0</ActivityId>
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute): Sharepoint_searchkeyword.searchkeyword: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SharePoint.Client.Search, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.</Message>
<Timestamp>2019-06-21T05:58:59.2544432Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>
[Sharepoint_searchkeyword: Sharepoint_searchkeyword.searchkeyword]
[a1ff1324-e893-e911-a825-000d3a47c8cb: Sharepoint_searchkeyword.searchkeyword: Update of lvt_searchprofiles]
</TraceText>
</OrganizationServiceFault>
*This post is locked for comments