I’m doing a project for a client using NServiceBus and Azure Service Bus.
For one particular service, they would like failed messages to end up in the ASB dead letter queue.
I expected the code below to do just that:
NServiceBus logs something like this:
Moving message ‘71ba2662-3f8f-4f67-9a5f-cf3898e0f201’ to the error queue ‘myqueue/$DeadLetterQueue’ because processing failed due to an exception…
Good, I thought, done. However, instead of the message residing in the DLQ, it ends up in the Transfer DLQ. A custom property is added:
DeadLetterReason: The transfer destination entity does not exist.
I don’t understand how this could be, because every queue implicitly has a DLQ. Has anyone done this before, and if so, how? What am I missing?