Share via

Function Runtime Error

mbeesley 1 Reputation point
2022-12-20T04:16:05.62+00:00

My azure function runtime is unable to start with error:
Microsoft.Azure.Functions.Extensions: Method not found: 'Microsoft.Extensions.Configuration.IConfigurationBuilder Microsoft.Azure.WebJobs.Hosting.IWebJobsConfigurationBuilder.get_ConfigurationBuilder()'.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Andrew Velez 0 Reputation points
    2023-07-13T21:13:56.5033333+00:00

    I was still getting this error even after upgrading the FUNCTION_EXTENSION_VERSION to v4, the .NET version to net6.0, and the NuGet packages on the function app. However, I had referenced a number of Microsoft.X packages that were labeled 7.0. I had to revert all of the references to 6.0 for both my function app, AS WELL AS the chain of projects that were referenced in my code for the function app (it ran about 4 deep). I believe the 7.0 libraries only are compatible with Function Apps that run in Isolation Mode, which we are not using yet. See https://github.com/Azure/azure-functions-host/issues/8984.

    0 comments No comments

  2. MughundhanRaveendran-MSFT 12,511 Reputation points
    2022-12-20T08:40:18.38+00:00

    @mbeesley ,

    Thanks for reaching out to Q&A forum.

    Please check if your scenario is related to this issue. If it is not related, I would suggest you review the dependency injection implementation in your code. Please look into the below documentation for reference.

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection

    Feel free to reach out to me if you have any queries or concerns.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.