Error trying to use Nservice bus

I am new to NServcie, and Im trying to implement posting and subscribing to posts. This is the error I get

An exception occurred while starting the endpoint; an error has been logged. Reason: The target queue "mygateway" was not found. You may have incorrectly configured the purpose of this message (NServiceBus.Unicast.Transport.CompletionMessage) in the MessageEndpointMappings section of the UnicastBusConfig section in the configuration file. It is also possible that this queue has not yet been created, or has been deleted.

This is the configuration I used in app config

         <MsmqTransportConfig
                       InputQueue="publisherqueue"
                       ErrorQueue="error"
                       NumberOfWorkerThreads="1"
                        MaxRetries="5" />

      <UnicastBusConfig
         DistributorControlAddress=""
         DistributorDataAddress=""
         ForwardReceivedMessagesTo="">

         <MessageEndpointMappings>
           <add Messages="Messages"
               Endpoint="mygateway" />
         </MessageEndpointMappings>
       </UnicastBusConfig>

       <MsmqSubscriptionStorageConfig
              Queue="GateWaySubscriptions" />

My question is: why is this "mygateway" queue not created automatically? Am I doing something wrong? Please, help.

Thanks, Alex.

+5
1

, "owns" ( ) MsmqTransportConfig, "publisherqueue" "error". , .

MessageEndpointMappings "remote", .. mygateway, "" Mygateway. "mygateway" .

, : " , mygateway, , ".

+7

All Articles