[rabbitmq-discuss] [Patch] Wcf client exception

Vadim Chekan kot.begemot at gmail.com
Fri Dec 31 04:23:08 GMT 2010


Ah, you are right. Somehow I thought I was up to date.

protocolversion in wcf .config files could be set to:
-                protocolversion="AMQP_0_9_1"
+                protocolversion="DefaultProtocol"

This will save you  from forgetting to update it to the latest version.
Vadim.

On Thu, Dec 30, 2010 at 4:36 PM, Marek Majkowski <majek04 at gmail.com> wrote:
> 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
>>
>



-- 
>From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
is explicitly specified


More information about the rabbitmq-discuss mailing list