Open christianroll opened 1 month ago
@christianroll I see you are using preview packages. We recently release GA 2.0.0, can you try those? Additionally, can you verify source gen is running for your project? Source gen is crucial in emitting code which will hook up extension configuration calls. Without those calls service bus will not register its services and lead to issues like this.
@jviau I upgraded all the versions to latest 2.0.0 and I also forced to be false: <FunctionsEnableExecutorSourceGen>false</FunctionsEnableExecutorSourceGen>
but no success, still getting this error:
Exception: Unable to resolve service for type 'Microsoft.Azure.ServiceBus.Grpc.Settlement+SettlementClient' while attempting to activate 'Microsoft.Azure.Functions.Worker.ServiceBusMessageActionsConverter'.
Description
Migrating to isolated worker in net8.0 using the library
ServiceBusMessageActions
doesn't work properly. I need to use DeadLetterMessageAsync but raises the following exception:My fsproj is as below using all latest version:
Migrating without usage of ServiceBusMessageActions is totally fine, the servicebus trigger works but has this limitation of not being able to use deadLetterMessageAsync...
I referenced this in this thread as well: https://github.com/Azure/azure-functions-dotnet-worker/issues/2102#issuecomment-2401618521
Steps to reproduce
Having a servicebus trigger in isolated worker in dotnet 8.0 referecing library ServiceBusMessageActions when it gets triggered it will raise grpc exception mentioned previously.