I have two simple console applications to integrate nservicebus. One is a publisher, the other a subscriber. The subscriber in the case also receives other messages via Send()
from yet another web application. When I run them locally in my dev environment, there are no problems, everything works as expected. I can send message from the web application and receive them on my "subscriber" as well as receive the published message on my subscriber.
However, when deploying to Server 2008 R2, the subscriber sends an initial message to publisher, StatusQueue, with this content:
<?xml version="1.0"?>
<Messages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.net/NServiceBus.Unicast.Transport">
<CompletionMessage>
<ErrorCode>0</ErrorCode>
</CompletionMessage>
</Messages>
I think this is just the initial "I wanna subscribe to messages you publish of type Messages.*". This message just sits in the queue and is never picked up by the publisher.
The publisher's config:
<MsmqSubscriptionStorageConfig
Queue="StatusQueueSubscriptions" />
<MsmqTransportConfig
InputQueue="StatusQueue"
ErrorQueue="StatusError"
NumberOfWorkerThreads="1"
MaxRetries="5"/>
The subscriber's config:
<MsmqTransportConfig
InputQueue="AppsInputQueue"
ErrorQueue="AppsError"
NumberOfWorkerThreads="1"
MaxRetries="5"/>
<UnicastBusConfig>
<MessageEndpointMappings>
<add Messages="Messages" Endpoint="StatusQueue"/>
</MessageEndpointMappings>
</UnicastBusConfig>