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.

Error when binding in WebJob

See original GitHub issue

I have a webjob using Microsoft.Azure.WebJobs 3.0.32. It contains a function that is bound to a SignalR instance using Microsoft.Azure.WebJobs.Extensions.SignalRService 1.8.0. This is dependent on Microsoft.Azure.SignalR.Management and Microsoft.Azure.SignalR. This web job was running perfectly fine when I was using version 1.16.1 of these libraries. After upgrading to 1.17.0 I started getting the following error for every incoming messages:

Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: [My function name] —> System.InvalidOperationException: Exception binding parameter ‘signalRMessages’ —> System.MissingMethodException: Method not found: ‘Void Microsoft.Azure.SignalR.ServiceEndpoint.set_Name(System.String)’. at Microsoft.Azure.WebJobs.Extensions.SignalRService.OptionsSetup.Configure(ServiceManagerOptions options) at Microsoft.Extensions.Options.OptionsFactory`1.Create(String name)

Basically. it no longer works. Is there a resource that details the breaking changes from 1.16.1 to 1.17.0, or was this unintentional?

The binding expression used within the function signature is:

[SignalR(HubName = "insyshub")] IAsyncCollector<SignalRMessage> signalRMessages

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
profnimrodcommented, May 21, 2022

Looks like 1.17.1 is now available in Nuget, and it fixes the problem I was seeing. Many thanks!

0reactions
vicancycommented, May 23, 2022

Thanks for the confirmation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Webjob Unable Start Due to Binding Error
As the Azure Function's document described: Access the message data by using a method parameter such as string paramName. You can bind to ......
Read more >
How to resolve: Microsoft.Azure.WebJobs.Host: Exception ...
I am attempting to locally run my subpub code while testing during development and am running into this error "System.Private.
Read more >
AZFW0001: Invalid binding attributes - Azure Functions
This rule is triggered when invalid WebJobs binding attributes are used in the function definition. Value. Rule ID, AZFW0001. Category, [Usage].
Read more >
Azure Functions Can't Bind Parameter 'data' to Type Error
In this post I'll show you how to resolve the "Can't bind parameter 'data' to type" error with Azure Functions.
Read more >
Azure Function Error indexing method 'Store' : r/csharp
If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, ... Host): 'StoreDb' can't be invoked from Azure WebJobs SDK.
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