azure-webjobs-sdk: Upgrading to Microsoft.Azure.Functions.Extensions v1.1 breaks function in Azure

Please provide a succinct description of the issue.

Repro steps

We upgraded to Microsoft.Azure.Functions.Extensions version 1.1 yesterday, and all of our Azure functions have the following error message:

System.Private.CoreLib: could not load type 'Microsoft.Azure.WebJobs.Hosting.IWebJobsStartup2' from Assembly Microsoft.Azure.WEbJobs.Host, Version=3.0.17.0 ....'

Expected behavior

The Azure Function to run in Azure like it does locally

Actual behavior

Get error message above.

Known workarounds

We are rolling back to v1.0 on all of our functions.

Related information

Provide any related information

  • We are running Azure Functions as Linux Containers on EP1 tier

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 5
  • Comments: 24 (6 by maintainers)

Most upvoted comments

When I updated to Microsoft.Azure.Functions.Extensions 1.1.0 and deploy to azure I get an error about …

Microsoft.Azure.WebJobs.Script: The Functions scale controller may not scale the following functions correctly because some configuration values were modified in an external startup class.

It then lists every function that has a connection string, time or queue name that is configured versus being a constant in code.

I had the same issue: System.Private.CoreLib: Could not load type 'Microsoft.Azure.WebJobs.Hosting.IWebJobsStartup2' from assembly 'Microsoft.Azure.WebJobs.Host, Version=3.0.16.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Add NuGet package <PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.19" /> rebuild solution Check the version of the Microsoft.Azure.WebJobs.Hostin C:\Users[User]\AppData\Local\AzureFunctionsTools\Releases\3.13.0\cli

I fixed it im my open source: https://github.com/RenetConsulting/angularcore.net/tree/master/Services/CoreCaptchaAzure

I’m seeing your app occasionally start up with a really old version of the host (from last April). I’ve not seen this before and I wonder if it has something to do with your ASE. I’m going to ask some experts on our team – but your best bet may be to submit an support ticket (which should get routed to the correct team).

I’ll update here if I hear back any recommendations…

I’m also facing this issue on Mac, I added the latest version of Microsoft.Azure.Webjobs and installed the latest version of Azure Functions Core Tools, no success. It does work when I run func start on the terminal.

@DOliana – is that locally or in Azure? If locally, can you make sure you’re running on the latest version of the Azure Functions Core Tools?