“System.BadImageFormatException: Could not load file or assembly ‘Microsoft.Azure.WebJobs.Host, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies” error in Azure WebJobs


Hi,

We were getting the below error while trying to run an Azure WebJob

Got it fixed by updating the Microsoft.Azure.WebJobs nugget package to version 2.0. and publishing it again.

Hope it helps…

Fixed – Copying file “” failed. Could not find file while trying to Publish the portal in Azure using Visual Studio


The project was getting build successfully. But while trying to publish it was getting the below error.

Excluding all the files from the Project fixed the issue.

 

 

Hope it helps..