question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrading to Microsoft.Azure.Functions.Extensions v1.1 breaks function in Azure

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
mwwhitedcommented, Oct 27, 2020

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.

2reactions
aaltotskycommented, Sep 24, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Functions runtime versions overview
Azure Functions supports multiple versions of the runtime. Learn the differences between them and how to choose the one that's right for ...
Read more >
Migrate apps from Azure Functions version 1.x to 4.x
This article walks you through the process of safely migrating your function app to run on version 4.x of the Functions runtime.
Read more >
Troubleshoot Python errors in Azure Functions
This article provides information to help you troubleshoot errors with your Python functions in Azure Functions. This article supports both ...
Read more >
Troubleshoot error: Azure Functions Runtime is unreachable
This issue occurs when the Functions runtime can't start. The most common reason for this is that the function app has lost access...
Read more >
How to update a particular extension of an Azure Function?
I've tried npm through Kudu, through Visual Studio Code... I'm missing something very simple. Extension: Microsoft.Azure.WebJobs.Extensions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found