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: