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.

Upgrade to NET6 - Functions failed to start

See original GitHub issue

Hello,

I have just recently tried to upgrade our installation of Company Communicator from version 5.2.0 to the latest 5.3.0.

The upgrade instructions were followed exactly as provided but the Function Apps (all 3) where failing to start, throwing the error: AZFD0005:

Message
Error building configuration in an external startup class.
Details
Microsoft.Azure.WebJobs.Script.ExternalStartupException : Error building configuration in an external startup class. ---> Microsoft.Azure.WebJobs.Script.HostInitializationException : One or more loaded extensions do not meet the minimum requirements. For more information see https://aka.ms/func-min-extension-versions. ExtensionStartupType DurableTaskWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.Extensions.DurableTask, Version=2.0.0.0, Culture=neutral, PublicKeyToken=014045d636e89289' does not meet the required minimum version of 2.4.1. Update your NuGet package reference for Microsoft.Azure.WebJobs.Extensions.DurableTask to 2.4.1 or later. ExtensionStartupType ServiceBusWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.ServiceBus, Version=3.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not meet the required minimum version of 4.2.1.0. Update your NuGet package reference for Microsoft.Azure.WebJobs.Extensions.ServiceBus to 4.2.1 or later (...)

The error is basically saying I’d need to update NuGet references to use the latest versions for some libraries. It does not make much sense to me as the libraries being referenced by CC are already versions greater than the minimum required.

Anyone else had this issue? And how to solve it?

Thank you in advance.

AZFD0005

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
victorsimonleecommented, Apr 18, 2023

Hello @gsv022,

As stated in my previous comment, the problem was indeed with the AzureWebJobsDashboard setting (it is not compativle with ~4 runtime).

I have then removed the AzureWebJobsDashboard App Setting entry from my environment (all functions & app service), re-deployed everything and it is now working as expected.

Thank you for your time looking into this.

I will close this ticket.

Cheers. Victor.

1reaction
gsv022commented, Apr 17, 2023

@victorsimonlee , Please note that the latest features such DOTNET upgrade .NET 6 , Azure Functions(~4), App service compatible to .NET 6 are part of latest version i.e., 5.3. This latest version code will be always be present in main branch of official repository. If the branch is pointing to main then functions will fail for sure.

Please let us know if you have any queries.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure function not running after upgrade to dotnet net6 ...
After upgrading my azure functions from dotnet core 3.1 to net6 the function is not starting. The package I reference is more recent...
Read more >
Isolated Process Azure function v4 with .net 6 fails on ...
The app was not created from scratch, but was updated from the previous version to use .net 6 and updating/upgrading all required dependencies....
Read more >
netCore3.1 to .net6.0 function app upgrade
I am unable to debug the function app in local. It is throwing error in startup.cs class. Any solution for this ? System.MissingMethodException: ......
Read more >
Azure Function Error after .Net Migration 3.1 to 6 : r/dotnet
I'm trying to upgrade a number of azure function projects to .net 6, most of the time ... A host error has occurred...
Read more >
Issues you may meet when upgrading Azure function app to V4
Apps on Azure > Issues you may meet when upgrading Azure function app ... indicate a host related issue such as “host failed...
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