0

I cannot seem to get NServiceBus working again after upgrading from NServiceBus 5 to 7.

I've uploaded my test solution to github.

The Error I'm getting right now is located in Program.cs on line 95. One level down it's on NServiceBusHelper.cs on line 29.

The error states: "No destination specified for message: HyFlo.Service.Messages.Commands.Info.GetVersionCommand".

We only use 1 EndpointConfiguration.

I've commented out the old (but working) NServiceBus 5.x code in Program.cs.

I hope someone can point me out on what to do.

NickGames
  • 312
  • 1
  • 18

1 Answers1

0

Make sure you have configured your routing: https://docs.particular.net/nservicebus/upgrades/6to7/#configuration-endpoint-mappings-command-routing

It looks like your routing configuration is commented out:

https://github.com/Nick7b/NServiceBusTestClient/blob/master/NServiceBusTestClient/Program.cs#L45-L48

Bob.Langley
  • 336
  • 1
  • 5
  • Thanks for helping me out. I tried that piece of code already but it isn't working, that's why it's commented out. The problem now is that I AM receiving messages in the client, but it says; "System.INvalidOperationException: No handlers could be found for message type: Hyflo.Service.Messages.Commands.Info.GetVersionCommand". This tells me it has something to do with https://github.com/Nick7b/NServiceBusTestClient/blob/master/NServiceBusTestClient/Program.cs#L88-L95 – NickGames Jul 27 '21 at 05:38
  • https://github.com/Nick7b/NServiceBusTestClient/blob/master/NServiceBusTestClient/NServiceBusHelper.cs should pick up the messages – NickGames Jul 27 '21 at 05:44
  • I do not see an implementation of `IHandleMessages`. Do you have a handler for that message type? – Bob.Langley Jul 28 '21 at 03:03