I'm debugging a console app that processes a data file and fires events
using rhino service bus. On startup, the program starts the bus:
ObjectFactory.GetInstance<IStartableServiceBus>().Start();
Then for each record in the file, it fires something like this:
serviceBus.Send(new MyCustomEvent(id));
Lately, the console has failed with the following exception:
InvalidOperationException: Cannot send a message before transport is
started
at Rhino.ServiceBus.Msmq.MsmqTransport.Send(Endpoint destination,
Object[] msgs)
at Rhino.ServiceBus.Impl.DefaultServiceBus.Send(Endpoint endpoint,
Object[] messages)
at Rhino.ServiceBus.Impl.DefaultServiceBus.Send(Object[] messages)
at MyProgram.Processor.Process(Record record) in
c:\Projects\MyProgram\Source\MyProgram\Processor.cs:line 183
When I debug it, the error is throwing *the second time `Send` is called*.
I get no other exceptions, but something seems to be closing my service bus.
Any idea how I can figure out what's closing the bus?
--
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rhino-tools-dev.
For more options, visit https://groups.google.com/groups/opt_out.