I was trying to generate a FHIR JSON from a plugin for Dynamics (.Net Framework Class library). I see the below error when the plugin is triggered. All the dependencies have been added to the assembly dll but still I see this error. Assembly registration and Step creation have also been successful. I have tried .Net 4.5, 4.7.1, 4.7.2 - same issue for all. Any help
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): FollowupPlugin.FollowupPlugin: System.IO.FileNotFoundException: Could not load file or assembly 'Hl7.Fhir.R4.Core, Version=1.7.0.0, Culture=neutral, PublicKeyToken=d706911480550fc3' 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>d908e678-de19-4dc5-8540-2663a882469a</ActivityId>
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute): FollowupPlugin.FollowupPlugin: System.IO.FileNotFoundException: Could not load file or assembly 'Hl7.Fhir.R4.Core, Version=1.7.0.0, Culture=neutral, PublicKeyToken=d706911480550fc3' or one of its dependencies. The system cannot find the file specified.</Message>
<Timestamp>2020-06-09T08:01:01.2646169Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource>PluginExecution</ExceptionSource>
<InnerFault i:nil="true" />
<OriginalException>System.IO.FileNotFoundException
at FollowupPlugin.FollowupPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.<>c__DisplayClass15_0.<Execute>b__0()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext, Boolean enablePluginStackTrace, Boolean chaosFailAppDomain, String crashOnPluginExceptionMessage)
at Microsoft.Crm.Sandbox.SandboxWorker.<>c__DisplayClass3_0.<Execute>b__0()</OriginalException>
<TraceText i:nil="true" />
</OrganizationServiceFault>