Hi all,
I am using RestSharp version 106.1.0.0 and .NET framework 4.6.1.
I wrote a plugin on create of contact which will fetch the email address of the contact and send an email using sendgrid. But when i created a contact in CRM it's showing the below error.
Below is the error log:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unexpected exception from plug-in (Execute): SendGrid_Integration.SendMail: System.IO.FileNotFoundException: Could not load file or assembly 'RestSharp, Version=106.1.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75' 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>59c76ab5-5568-455d-a6ec-45b117cc39d1</ActivityId>
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Unexpected exception from plug-in (Execute): SendGrid_Integration.SendMail: System.IO.FileNotFoundException: Could not load file or assembly 'RestSharp, Version=106.1.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75' or one of its dependencies. The system cannot find the file specified.</Message>
<Timestamp>2017-12-12T07:20:02.9579604Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>
[SendGrid Integration: SendGrid_Integration.SendMail]
[02411298-75de-e711-a94f-000d3af0392a: SendGrid_Integration.SendMail: Create of contact]
</TraceText>
</OrganizationServiceFault>
Can anyone tell me what exactly is the issue here??
Thanks in advance
AKHIL R
*This post is locked for comments