How to fix "Microsoft.Azure.WebJobs.Extensions.EventHubs: Method not found: 'Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder Microsoft.Azure.WebJobs.WebJobsExtensionBuilderExtensions.ConfigureOptions(Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder"

Sachin Yadav (Infosys Ltd) 0 Reputation points Microsoft Vendor
2025-01-06T05:31:38.55+00:00

I have referenced below packages in my function app but after deployment I am seeing this error and my function app does not start.

<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.41" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.EventHubs" Version="6.3.5" />

_
Microsoft.Azure.WebJobs.Script: Error configuring services in an external startup class. Microsoft.Azure.WebJobs.Extensions.EventHubs: Method not found: 'Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder Microsoft.Azure.WebJobs.WebJobsExtensionBuilderExtensions.ConfigureOptions(Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder, System.Action`2<Microsoft.Extensions.Configuration.IConfigurationSection,!!0>)'._

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,319 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 5,565 Reputation points Microsoft Employee
    2025-01-06T09:14:55.81+00:00

    Hello @Sachin Yadav (Infosys Ltd)

    It seems like there is a version mismatch between the Microsoft.Azure.WebJobs and Microsoft.Azure.WebJobs.Extensions.EventHubs packages.

    The error message indicates that the Microsoft.Azure.WebJobs.Extensions.EventHubs package is looking for a method that is not available in the version of Microsoft.Azure.WebJobs that you have installed.

    To fix this issue, you can try updating the Microsoft.Azure.WebJobs package to a version that is compatible with the Microsoft.Azure.WebJobs.Extensions.EventHubs package.

    You can check the compatibility of the packages from the NuGet package manager. You can also try downgrading the Microsoft.Azure.WebJobs.Extensions.EventHubs package to a version that is compatible with the Microsoft.Azure.WebJobs package you have installed. If neither of these solutions work, you can try removing both packages and then reinstalling them with compatible versions.


    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts but also assist other community members who may be looking for similar solutions.

    0 comments No comments

Your answer

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