[rabbitmq-discuss] [Patch] Wcf client exception

Vadim Chekan kot.begemot at gmail.com
Fri Dec 31 00:01:44 GMT 2010


When I'm trying to use Wcf I get "ACCESS_REFUSED - operation not
permitted on the default exchange".
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


More information about the rabbitmq-discuss mailing list