开发者

Problems starting an NServiceBus

I've created a very simple NServiceBus console application to send messages. However I cannot start the bus as it complains with a very vague error about 'Object reference not set to an instance of an object'.

        Configure config = Configure.With();
        config = config.DefaultBuilder();
        config = config.BinarySerializer();
        config = config.Unicast开发者_Python百科Bus();
        IStartableBus startableBus = config.CreateBus();
        IBus Bus2 = startableBus.Start(); // **barf**

It's driving me mad, what am I missing? I thought the DefaultBuilder should be filling in any blanks?


Hmm, looks like a reference to ncqrs.NserviceBus is causing it to go wrong even though I'm not actually using it yet


Looks like manually adding the Assemblies in the overload to With() did the trick, not sure what's upsetting it but that's for another day

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜