Open grik001 opened 5 years ago
I just had a similar issue. Microsoft.Azure.WebJobs.Extensions.EventHubs depends on version 3.0.0 of Microsoft.Azure.EventHubs, but I have two other referenced projects using version 4.1.0. Launching the app then gives the exact same error message as you describe. A workaround that seems to be working for now is installing version 3.0.0 of Microsoft.Azure.EventHubs directly in the functions-project.
I had this same issue in one of the QA enviornment ,but event hub trigger works in dev. Checked the connectionstring of eventhub and downgraded the Microsoft.Azure.WebJobs.Extensions.EventHubs to version 3.0.0, but still messages are not picked up. Any idea on this
This is still an issue even after upgrading to Azure Functions V3. Any updates? It's been open for over 6 months at this point.
I had the same issue today. I resolved it by adding Microsoft.Azure.WebJobs.Extensions.EventHubs instead of Microsoft.Azure.EventHubs. For some reason the error keeps coming when adding Microsoft.Azure.EventHubs directly.
Had the same issue today. As said you need to use the Microsoft.Azure.WebJobs.Extensions.EventHubs. If you do need to use Microsoft.Azure.EventHubs say in depedent project then make sure it is 3.0.0.
It would be really good if MS could address this.
For reference this was an issue for us in Functions V3 not just V2.
I'm also facing this issue in a v3 Azure Function.
I've referenced Microsoft.Azure.WebJobs.Extensions.EventHubs v4.1.1 Visual Studio tells me this is referencing Microsoft.Azure.EventHubs v3.0.0 (via Microsoft.Azure.EventHubs.Processor)
But nuget tells me it is referencing 4.2 (https://www.nuget.org/packages/Microsoft.Azure.EventHubs.Processor/)
I tried:
The azure function runs on my machine flawless. But in Azure I get:
Microsoft.Azure.WebJobs.Host.Listeners.FunctionListenerException: The listener for function 'EventHubTriggeredProcessor' was unable to start.
---> Microsoft.Azure.EventHubs.Processor.EventProcessorConfigurationException: Encountered error while fetching the list of EventHub PartitionIds
---> System.MissingMethodException: Method not found: 'Microsoft.Azure.EventHubs.EventHubClient Microsoft.Azure.EventHubs.EventHubClient.Create(System.Uri, System.String, Microsoft.Azure.EventHubs.ITokenProvider, System.Nullable`1
How should the EventHub Trigger being used om a working environment on Azure?
This solved my issue: github.com/Azure/azure-functions-eventhubs-extension/issues/44
Hi,
I am facing the below error when trying to start my azure functions. The runtime for my azure functions is .netstandard 2.0.
My scenario is this: I have a common library(.netstandard) and 2 azure functions. 1 of the functions has an EventHubTrigger and all was working well. After I add "Microsoft.Azure.Eventhubs" to the common library the below error starts occurring. The reason I need this library is because function 2 posts to EH. I have then attempted to remove the library and F1 starting working normally.