我正在使用 azure webjobs v3 作为 eventhub 触发器。直到某个时候一切正常。突然间,我遇到了错误。有人可以帮我解决这个问题吗?
public async Task Trigger00([EventHubTrigger("%eventhub-00%", Connection = "ConnectionString")] string message)
{
blah...
}
Run Code Online (Sandbox Code Playgroud)
Host.Startup[0]
The listener for function 'Trigger00' was unable to start.
Microsoft.Azure.WebJobs.Host.Listeners.FunctionListenerException: The listener for function 'Trigger00' was unable to start. ---> System.MissingMethodException: Method not found: 'Void Microsoft.Azure.EventHubs.EventHubsException..ctor(Boolean, System.String, System.Exception)'.
at Microsoft.Azure.EventHubs.Processor.EventProcessorConfigurationException..ctor(String message, Exception innerException)
at Microsoft.Azure.EventHubs.Processor.PartitionManager.GetPartitionIdsAsync()
at Microsoft.Azure.EventHubs.Processor.PartitionManager.GetPartitionIdsAsync()
at Microsoft.Azure.EventHubs.Processor.PartitionManager.InitializeStoresAsync()
at Microsoft.Azure.EventHubs.Processor.PartitionManager.StartAsync()
at Microsoft.Azure.EventHubs.Processor.EventProcessorHost.RegisterEventProcessorFactoryAsync(IEventProcessorFactory factory, EventProcessorOptions processorOptions)
at Microsoft.Azure.WebJobs.EventHubs.EventHubListener.StartAsync(CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Extensions.EventHubs\Listeners\EventHubListener.cs:line 46
at Microsoft.Azure.WebJobs.Host.Listeners.FunctionListener.StartAsync(CancellationToken cancellationToken, Boolean allowRetry) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Listeners\FunctionListener.cs:line 68 …Run Code Online (Sandbox Code Playgroud) azure azure-webjobs azure-webjobssdk azure-eventhub azure-functions