I have followed this tutorial to deploy a .NET Core console application to an Azure Web Service WebJob.
My app is running locally without any issue (with dotnet
This error could happen if the bitness of your application doesn't match the bitness of your App Service (e.g. publishing a 64-bit deployment to an App Service running in 32-bit mode).
To solve this I had to change the bitness to the correct setting in Azure:
To match the bitness of my publish profile in VS: