[rabbitmq-discuss] No Exchange Error

Patrick Kenney pekenney at gmail.com
Mon Jul 20 21:39:26 BST 2009


in working with the samples I am using the following test consumer snippet
...

<snip>
ServiceHost dispatcherHost = new ServiceHost(typeof(DispatcherService), new
Uri("soap.amqp:///"));
dispatcherHost.AddServiceEndpoint(typeof(IDispatcherService), new
RabbitMQBinding(new Uri("amqp://localhost:5672/"), Protocols.AMQP_0_8),
"soap.amqp://localhost/dispatcher");
</snip>

when the RabbitMQBinding is hit in the RabbitMQ.Service model I get the
following nasty gram...

RabbitMQ.Client.Exceptions.OperationInterruptedException was unhandled by
user code
  Message="The AMQP operation was interrupted: AMQP close-reason, initiated
by Peer, code=404, text=\"NOT_FOUND - no exchange 'localhost' in vhost
'/'\", classId=50, methodId=20, cause="
  Source="RabbitMQ.Client"
  StackTrace:
       at RabbitMQ.Client.Impl.SimpleBlockingRpcContinuation.GetReply() in
C:\RabbitMQ.Client\RabbitMQ\Client\Impl\SimpleBlockingRpcContinuation.cs:line
22
       at RabbitMQ.Client.Impl.ModelBase.ModelRpc(MethodBase method,
ContentHeaderBase header, Byte[] body) in
C:\\RabbitMQ.Client\RabbitMQ\Client\Impl\ModelBase.cs:line 498
       at RabbitMQ.Client.Framing.Impl.v0_8.Model.QueueBind(String queue,
String exchange, String routingKey, Boolean nowait, IDictionary arguments)
in C:\\RabbitMQ.Client\RabbitMQ\Client\Framing\Impl\v0_8\Model.cs:line 374
       at RabbitMQ.ServiceModel.RabbitMQInputChannel.Open(TimeSpan timeout)
in
C:\\RabbitMQ.ServiceModel\RabbitMQ\ServiceModel\RabbitMQInputChannel.cs:line
52
       at
System.ServiceModel.Channels.InternalDuplexChannelListener.ServerCompositeDuplexChannel.OnOpen(TimeSpan
timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open()
       at
System.ServiceModel.Channels.ReliableChannelListener`3.HandleAcceptComplete(TInnerChannel
channel)
  InnerException:

any suggestions from those more familiar with the Client/Service Model
libraries?

Am I missing something obvious?

thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090720/ee18da4e/attachment.htm 


More information about the rabbitmq-discuss mailing list