Service Control Failed Message does not come myhandler

30 views
Skip to first unread message

Amit Sharma

unread,
Sep 27, 2017, 2:10:15 AM9/27/17
to Particular Software
Helpful information to include
Product name:NServiceBus
Version:5.0.10
Stacktrace:ServiceControl.Contracts.MessageFailed' is included in initial scanning
Description:

I want to strore all failed message into database or blob staorage for that

Create a Endpoint
 configuration.EndpointName(GetEndpointName());
            var conventions = configuration.Conventions();
            conventions.DefiningEventsAs(
                type => typeof(IEvent).IsAssignableFrom(type) ||
                        // include ServiceControl events
                        type.Namespace != null &&
                        type.Namespace.StartsWith("ServiceControl.Contracts"));
            //configuration.Conventions().DefiningEventsAs(t => t.IsAssignableFrom(t) || t.Namespace != null && t.Namespace.StartsWith("ServiceControl.Contracts");
            configuration.AssembliesToScan();
            configuration.UseContainer<StructureMapBuilder>(c => c.ExistingContainer(Bootstrapper.Instance.Container));
            configuration.EnableInboxAndOutbox();
            configuration.DefineCriticalErrorAction(OnCriticalError);
            DisableSlr(configuration);
            configuration.UseSerialization<JsonSerializer>();

Config File setting
<UnicastBusConfig> <MessageEndpointMappings > <add Assembly="ServiceControl.Contracts" Endpoint="Particular.ServiceControl" /> </MessageEndpointMappings> </UnicastBusConfig>

Crete a new handle

public void Handle(MessageFailed message) { //save failed message in database here. }

Problem
Failed message is coming on my handler while same message i am receiveing on service pluse.

can anybody help me out what i am missing in configuration or settings so messaged arrived at my handler when failed message event come from service control

1. I think... may be ServiceControl.Contract.dll not scan.
2.

Tim

unread,
Sep 27, 2017, 3:59:41 AM9/27/17
to Particular Software
Hey Amit,

We moved our community platform to https://discuss.particular.net. This Google Group will be locked down very soon. For more details, see our announcement here: https://groups.google.com/forum/#!topic/particularsoftware/gjVrM5radzk
Could you repost this question on https://discuss.particular.net?

Cheers,
Tim
Reply all
Reply to author
Forward
0 new messages