The queue already exists with a different `durable` property. Either change your declaration
properties to match what's already there or delete the queue and re-run your code.
On 5 January 2017 at 16:15:33, Henri Adiv (
hen...@gmail.com) wrote:
> Hi
> i have a case which is not cleared to me, since i'm using a non durable
> queue, and trying to receive a message on it. what am i doing wrong?
> using this code:
>
> Bus.Advanced.QueueDeclare("Test1", durable: false, autoDelete: true);//Declare
> a new queue - non existing
>
> Bus.Advanced.Bind(new Exchange("MyExchange"), new Queue("Test1"), "#");
>
> Bus.Receive("Test1", onMessage);
>
>
> private void OnMessage(string f)
> {
>
> }
>
>
>
> i get this error :
>
> Additional information: The AMQP operation was interrupted: AMQP close-reason, initiated
> by Peer, code=406, text="PRECONDITION_FAILED - inequivalent arg 'durable' for queue
> 'Test1' in vhost '/': received 'true' but current is 'false'", classId=50, methodId=10,
> cause=
>
>
> thanks
>
> henri
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "rabbitmq-users"
> group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
rabbitmq-user...@googlegroups.com.
> To post to this group, send an email to
rabbitm...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
>
--
MK
Staff Software Engineer, Pivotal/RabbitMQ