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.

ServiceBusException when using Service Bus Premium with .NET Core Project

See original GitHub issue

I’m getting this exception when using Service Bus Premium version & .NET CORE 2.2 Target Framework.

If I change the service bus to Standard version or change the .NET Framework to 4.6.1. The orchestration completes successfully. For the above said issue, the orchestration state is “Pending”.

To re-create, attached sample project can be used, which uses the AverageCalculator from durabletask/DurableTask.Samples.

serviceBusConnectionString, storageConnectionString and taskHubName should be modified in Program.cs.

NuGet Packages versions

“DurableTask.Core” Version=“2.0.0.6” “DurableTask.ServiceBus” Version=“2.0.0.6” “EnterpriseLibrary.SemanticLogging” Version=“2.0.1406.1” “Microsoft.Azure.DurableTask.ServiceBus” Version=“2.1.3” “Microsoft.Azure.ServiceBus” Version=“4.1.1” “WindowsAzure.Storage” Version=“9.3.3”

Exception Details Exception: Microsoft.Azure.ServiceBus.ServiceBusException : The service was unable to process the request; please retry the operation. For more information on exception types and proper exception handling, please refer to http://go.microsoft.com/fwlink/?LinkId=761101 Reference:1c875715-d6a5-4eb8-839b-bbe5aa367228, TrackingId:6e0b54590000008900000ebc5e501c4c_G12_B32, SystemTracker:escalationsvc-test:Queue:escalationsvchub/orchestrator, Timestamp:2020-02-21T18:07:09 at Microsoft.Azure.ServiceBus.MessageSession.OnSetStateAsync(Byte[] sessionState) at Microsoft.Azure.ServiceBus.MessageSession.OnSetStateInstrumentedAsync(Byte[] sessionState) at DurableTask.ServiceBus.Common.Abstraction.IMessageSession.SetStateAsync(Byte[] sessionState) in C:\source\durabletask\src\DurableTask.ServiceBus\Common\Abstraction\ServiceBusAbstraction.cs:line 140 at DurableTask.ServiceBus.ServiceBusOrchestrationService.TrySetSessionStateAsync(TaskOrchestrationWorkItem workItem, OrchestrationRuntimeState newOrchestrationRuntimeState, OrchestrationRuntimeState runtimeState, IMessageSession session) in C:\source\durabletask\src\DurableTask.ServiceBus\ServiceBusOrchestrationService.cs:line 1560 at DurableTask.ServiceBus.ServiceBusOrchestrationService.CompleteTaskOrchestrationWorkItemAsync(TaskOrchestrationWorkItem workItem, OrchestrationRuntimeState newOrchestrationRuntimeState, IList1 outboundMessages, IList1 orchestratorMessages, IList1 timerMessages, TaskMessage continuedAsNewMessage, OrchestrationState orchestrationState) in C:\source\durabletask\src\DurableTask.ServiceBus\ServiceBusOrchestrationService.cs:line 658 at DurableTask.Core.TaskOrchestrationDispatcher.OnProcessWorkItemAsync(TaskOrchestrationWorkItem workItem) in C:\source\durabletask\src\DurableTask.Core\TaskOrchestrationDispatcher.cs:line 427 at DurableTask.Core.TaskOrchestrationDispatcher.OnProcessWorkItemSessionAsync(TaskOrchestrationWorkItem workItem) in C:\source\durabletask\src\DurableTask.Core\TaskOrchestrationDispatcher.cs:line 116 at DurableTask.Core.WorkItemDispatcher1.ProcessWorkItemAsync(WorkItemDispatcherContext context, Object workItemObj) in C:\source\durabletask\src\DurableTask.Core\WorkItemDispatcher.cs:line 312

I will appreciate any pointers to resolve this issue.

Please let me know if you have any questions or need any additional information.

Thanks, Sakshar DTFNetCoreSample.zip

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jeffli-microsoftcommented, Mar 11, 2020

@maximebousquet I was not able to resolve the issue. I am still running into the issue with the updated libraries so I will try to provide more information around my errors.

1reaction
shankarsamacommented, Feb 25, 2020

We are looking into this issue. @tkamesh will update this thread with details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Service Bus issues
The Service Bus client library will surface exceptions when an error is encountered by a service operation or within the client. When possible,...
Read more >
Get started with Azure Service Bus queues (Java)
This tutorial shows you how to send messages to and receive messages from Azure Service Bus queues using the Java programming language.
Read more >
Quickstart - Use Azure Service Bus queues from .NET app
This quickstart shows you how to send messages to and receive messages from Azure Service Bus queues using the .NET programming language.
Read more >
Service Bus NET Core client (NET Standard client). Unable ...
I get this error: Message: Microsoft.Azure.ServiceBus.MessagingEntityNotFoundException : None of the server sasl-mechanisms ([PLAIN,EXTERNAL]) ...
Read more >
Azure Service Bus client library for .NET
A ServiceBusException is triggered when an operation specific to Service Bus has encountered an issue, including both errors within the service and specific...
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