Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 607 Bytes

definingmessagesas-and-definingeventsas-when-starting-endpoint.md

File metadata and controls

19 lines (10 loc) · 607 Bytes
title summary tags
DefiningMessagesAs and DefiningEventsAs When Starting Endpoint
To fix an exception when starting an endpoint with DefiningMessagesAs, include your default namespace.

When defining an conventions the following way:

A FATAL NServiceBus.Hosting.GenericHost exception is thrown: Exception when starting endpoint..

The reason is that NServiceBus itself uses namespaces that end with "Messages". To fix the error include your default namespace; for example: