Servicebus adapter in BizTalk 2020 causes strange warning in eventlog

erik 1 Reputation point
2022-03-09T15:31:29.003+00:00

We have several receive locations that use the servicebus adapter. I have seen that when disabling the adapter, either by stopping it or because of a service window, the following warning can be seen in the eventlog:

The adapter "SB-Messaging" raised an error message. Details "System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement+RedirectContainerChannelFactory`1[System.ServiceModel.Channels.IRequestSessionChannel]'.

This warning is displayed even when there are no messages to be picked up (for example a new topic where no messages are being published to).
What is the root cause for this warning?

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
365 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kamlesh Kumar 3,861 Reputation points
    2022-03-11T16:40:25.143+00:00

    Hi There,

    Thank you for asking this question on the Microsoft Q&A Platform.

    The most probable reason of this warning could be 'Shutdown an endpoint while busy receiving/processing.'

    We would suggest to please check the below discussion where it was identified the issue. This could help you to troubleshoot your issue.

    https://github.com/Particular/NServiceBus.AzureServiceBus/issues/337

    Regards,
    Kamlesh Kumar
    BizTalk Techie

    If this answer solved your problem, please click the Verify Answer button (found below the answer) to help other users who have the same question.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.