Problems connecting to SubscriptionService on same machine

34 views
Skip to first unread message

Vladimir McBadger

unread,
Apr 19, 2015, 6:47:49 PM4/19/15
to masstrans...@googlegroups.com
I'm trying to use the SubscriptionService with the masstransit version I just pulled off Nuget.  When I run the RunTimeService from within VS2013 I get the following console output

INFO  05:26:43 Using Configuration File: D:\Documents\Development\Open Source\MassTransit-2.9.8\src\MassTransit.RuntimeServices\bin\Debug\MassTransit.RuntimeServices.exe.config
INFO  05:26:43 MassTransit v2.9.7/v2.9.0.0, .NET Framework v4.0.30319.18444
INFO  05:26:46 Subscription Service Starting: msmq://aucdkeng81/mt_subscriptions?tx=false&recoverable=true
INFO  05:26:46 Subscription Service Started
INFO  05:31:04 Sending 0 subscriptions to msmq://aucdkeng81/pve_web_app?tx=false&recoverable=true
INFO  05:33:46 Sending 0 subscriptions to msmq://aucdkeng81/pve_web_app?tx=false&recoverable=true

When I then run the following code I get the error : Timeout waiting for subscription service to respond (address = msmq://localhost/pve_web_app)

      AppBus = ServiceBusFactory.New(c =>
        {
          c.UseMsmq(mc =>
            {
              //mc.UseMulticastSubscriptionClient();
              //mc.Configurator.SetPurgeOnStartup(true);
              mc.UseSubscriptionService("msmq://aucdkeng81/mt_subscriptions?tx=false&recoverable=true");
            });

          c.ReceiveFrom(address);
         
          c.BeforeConsumingMessage(() => Trace.WriteLine("BeforeConsumingMessage"));
          c.AfterConsumingMessage(() => Trace.WriteLine("AfterConsumingMessage"));
        });


Faisal Nadeem

unread,
Apr 20, 2015, 7:00:55 AM4/20/15
to masstrans...@googlegroups.com
Modify bust init code to use Control Bus. And change hostname "aucdkeng81" to "localhost". Might be your dns is not resolving the ip.

AppBus = ServiceBusFactory.New(c =>
        {
          c.UseMsmq(mc =>
            {
              //mc.UseMulticastSubscriptionClient();
              //mc.Configurator.SetPurgeOnStartup(true);
              mc.UseSubscriptionService("msmq://aucdkeng81/mt_subscriptions?tx=false&recoverable=true");
              mc.UseControlBus();

            });

          c.ReceiveFrom(address);
          
          c.BeforeConsumingMessage(() => Trace.WriteLine("BeforeConsumingMessage"));
          c.AfterConsumingMessage(() => Trace.WriteLine("AfterConsumingMessage"));
        });
--------------------------------------

Chris Patterson

unread,
Apr 21, 2015, 11:35:06 AM4/21/15
to masstrans...@googlegroups.com
And if you're using MSMQ, you can always look at the Message Queuing section of the management console to see what queues are being created, connected, etc. It will also show remote machines and the state of the connection so you can troubleshoot any authentication issues or otherwise that may be occurring.

MSMQ can be run to setup, with services running under domain accounts to be able to access remote queues, etc. So pay particular attention to any of those aspects when configuring and deploying.


--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/2a4b82c0-527e-4fe9-91ca-995ec3890db8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages