I followed the Getting Started With NServiceBus - Code First Article and when I attempt to send a message from the Client application (NServiceBusDemo.Client) I get the following exception:
2013-05-27 12:27:50,514 [7] ERROR NServiceBusDemo.Client.SendOrder [(null)] <(nu ll)> - Problem occurred when starting the endpoint. Common.Logging.ConfigurationException: The destination queue 'server@jasper' cou ld not be found. You may have misconfigured the destination for this kind of mes sage (NServiceBusDemo.Messages.Commands.PlaceOrder) in the MessageEndpointMappin gs of the UnicastBusConfig section in your configuration file. It may also be th e case that the given queue just hasn't been created yet, or has been deleted. - --> NServiceBus.Unicast.Queuing.QueueNotFoundException: Failed to send message t o address: [server@jasper] ---> System.Messaging.MessageQueueException: The queu e does not exist or you do not have sufficient permissions to perform the operat ion.
It's been a long time since I used NServiceBus but I do recall having to add the message endpoint mappings (not mentioned in the tutorial) which I have done:
<UnicastBusConfig ForwardReceivedMessagesTo="audit">
<MessageEndpointMappings>
<add Messages="NServiceBusDemo.Messages" Endpoint="NServiceBusDemo.Server"/>
</MessageEndpointMappings>
</UnicastBusConfig>
When I look in the Message Queuing Console I have the following private queues created:
- nservicebusdemo.client
- nservicebusdemo.client.retries
- nservicebusdemo.server
- nservicebusdemo.server.retries
- nservicebusdemo.server.timeouts
- nservicebusdemo.server.timeoutsdispatcher