I am experiencing issues with the azure function app that gets triggered via azure service bus. The issue happens only in the cloud. Local execution is fine & messages are processed as expected.
When deployed to the azure cloud it throws System.TypeLoadException before starting the listening operation. Hence none of the messages gets processed.
The error message reads "The listener for function '{{FunctionName}}' was unable to start. Could not load type 'Azure.AzureNamedKeyCredential' from assembly 'Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8'"
Any idea why I don't see this error when running locally but happens only in the remote?