I have a Web Api project that publishes messages and a host that subscribes to those messages. This works fine in the development environment (tested in 2 machines).
When we deployed it to a Test server, it didn't work. The Publish method call doesn't throw any exception, it looks like everything is ok, but the message doesn't get added to the message queue. We checked the queue's permissions, everything is set up in the test server just like it is in our development environments.
This is how we setup the Bus in the Web Api:
Bus = Configure.With()
.Log4Net()
.DefaultBuilder()
.UseTransport<Msmq>()
.UnicastBus()
.RavenSubscriptionStorage()
.CreateBus()
.Start((() => Configure.Instance.ForInstallationOn<Windows>().Install()));
EDIT: I just saw that the Subscriber is not registered in RavenDB. The publisher table contains no documents in the test server, while in the dev machine it contains the reference to the subscriber. Any idea on why this happened and how to fix it?