I have following Lambda Function which I use to establish a connection with CRM through the library Microsoft.PowerPlatform.Dataverse.Client 1.0.9. The Lambda function uses the .NET Core 3.1 as target framework.
Unfortunately I am facing following exception:
Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. An operation is not legal in the current state. (0x80131509)
and Microsoft.Xrm.SDK is a dependent assembly to Microsoft.PowerPlatform.Dataverse.Client 1.0.9
I have also tried to run the same codeblock in a Console Application which also runs in .NET Core 3.1 and it succeeds establishing the connection even though they are using the same Nuget package.
Are there any restrictions in AWS Lambda according to this ?.

