Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EasyNetQ Field Not Found 'RabbitMQ.Client.ConnectionFactory.AutomaticRecoveryEnabled'

With EasyNetQ v0.63.0.448, RabbitMqClient v4.0.2 and RabbitMq server 3.6.5 when I try to create a bus like so...

   bus = RabbitHutch.CreateBus(new ConnectionConfiguration()
            {
                Hosts = new[] { new HostConfiguration() { Host = hostName, Port = port } },
                UserName = username,
                Password = password,
            }, x => { }).Advanced;

I'm getting the Error:

"Field Not Found 'RabbitMQ.Client.ConnectionFactory.AutomaticRecoveryEnabled'."

Is this an underlying incompatibility between easynetq and this version of Rabbit or is there a change in the API somewhere that I need to reflect?

like image 583
gmn Avatar asked Mar 11 '23 05:03

gmn


1 Answers

It looks like that version of EasyNetQ is compiled against version 3.6.0 of RabbitMQ. In version 4 of RabbitMQ, AutomaticRecoveryEnabled and some other fields in ConnectionFactory were changed to properties which is a breaking change.

Until EasyNetQ is recompiled using version 4 of RabbitMQ you will have to use an older version of RabbitMQ - 3.6.5 seems to work for me.

like image 122
kevev22 Avatar answered Apr 06 '23 12:04

kevev22