MassTransit.RabbitMQ - Could not load type 'RabbitMQ.Client.NetworkConnection'

Created on 29 Apr 2020  路  5Comments  路  Source: MassTransit/MassTransit

Is this a bug report?

Yes

Can you also reproduce the problem with the latest version?

Yes.

Environment

  1. Operating system: Windows 10
  2. Visual Studio version: Microsoft Visual Studio Enterprise 2019 Version 16.5.4
  3. Dotnet version: .Net Framework 4.6.1

Steps to Reproduce

  1. Update the MassTransit and MassTransit.RabbitMQ to the last version
  2. Update the RabbitMQ.Client to the last version

Expected Behavior

Connect to the RabbitMQ

Actual Behavior

Could not load type 'RabbitMQ.Client.NetworkConnection' from assembly 'RabbitMQ.Client, Version=6.0.0.0, Culture=neutral, PublicKeyToken=89e7d7c5feba84ce'.

https://stackoverflow.com/questions/61460524/rabbitmq-v6-0-0-could-not-load-type-rabbitmq-client-networkconnection

image

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Most helpful comment

Okay, I added that, and upgraded to 5.2.0 at the same time.

All 5 comments

MassTransit does not yet support the major version upgrade to RabbitMQ.Client.

Duplicate of #1826

Hi @pattonjp

Thank you for your quick answer 馃檪

Just a suggestion: maybe the NuGet package should be updated to >= 5.1.2 & < 6.0.0

image

Is that easy enough to do from the package reference, by adding that string?

So... [5.1.2,6.0) should do it?

Okay, I added that, and upgraded to 5.2.0 at the same time.

Was this page helpful?
0 / 5 - 0 ratings