Using Microsoft.PowerPlatform.Dataverse.Client 0.5.10
I got an Azure function with a Blob trigger that parses the blobs and writes to Dynamics 365 CE. Was working fine until the frequency of Blobs uploaded increased drastically. First I was seeing the error
Unable to cast object of type 'generatedProxy_2' to type 'Microsoft.PowerPlatform.Dataverse.Client.IOrganizationServiceAsync'
I read through #48 and added
RequireNewInstance=true
to the connectionString.
Now it looks like more Blobs get processed but the majority now produces the very similar exception
Unable to cast object of type 'generatedProxy_3' to type 'Microsoft.PowerPlatform.Dataverse.Client.IOrganizationServiceAsync'