[rabbitmq-discuss] [Patch] Wcf client exception

Marek Majkowski majek04 at gmail.com
Fri Dec 31 00:36:50 GMT 2010


On Fri, Dec 31, 2010 at 00:01, Vadim Chekan <kot.begemot at gmail.com> wrote:
> When I'm trying to use Wcf I get "ACCESS_REFUSED - operation not
> permitted on the default exchange".

Are you using the latest release of dotnet client?

I'm pretty sure this bug was already fixed:
http://hg.rabbitmq.com/rabbitmq-dotnet-client/rev/14f00a39d0c7

Cheers,
   Marek



> It seems you can not bind a queue to default exchange. Here is a patch
> skipping default exchange binding.
>
> Vadim.
>
> ==================================================================
> diff -r 982a0b810bcb
> projects/wcf/RabbitMQ.ServiceModel/src/serviceModel/RabbitMQInputChannel.cs
> --- a/projects/wcf/RabbitMQ.ServiceModel/src/serviceModel/RabbitMQInputChannel.cs
>      Thu Oct 28 14:49:55 2010 +0100
> +++ b/projects/wcf/RabbitMQ.ServiceModel/src/serviceModel/RabbitMQInputChannel.cs
>      Thu Dec 30 15:57:53 2010 -0800
> @@ -169,7 +169,8 @@
>  #endif
>             //Create a queue for messages destined to this service,
> bind it to the service URI routing key
>             string queue = m_model.QueueDeclare();
> -            m_model.QueueBind(queue, base.LocalAddress.Uri.Host,
> base.LocalAddress.Uri.PathAndQuery, false, null);
> +            if(!string.IsNullOrEmpty(base.LocalAddress.Uri.Host))
> +                m_model.QueueBind(queue, base.LocalAddress.Uri.Host,
> base.LocalAddress.Uri.PathAndQuery, false, null);
>
>             //Listen to the queue
>             m_messageQueue = new QueueingBasicConsumer(m_model);
> ==================================================================
>
> --
> From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
> is explicitly specified
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


More information about the rabbitmq-discuss mailing list