Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.23 KB

no-endpoint-configuration-found-in-scanned-assemblies-exception.md

File metadata and controls

21 lines (17 loc) · 1.23 KB
title summary component reviewed redirects
No Endpoint Configuration Found in Scanned Assemblies
Troubleshooting when no IConfigureThisEndoint instances can be found
Host
2023-05-02
nservicebus/no-endpoint-configuration-found-in-scanned-assemblies-exception

As the exception states, NServiceBus was not able to find the endpoint configuration, i.e., an implementation of IConfigureThisEndoint.

The exception might be thrown by NServiceBus.Host.exe, the NServiceBus generic host.

Here are possible causes for this exception:

  • There is no implementation of IConfigureThisEndpoint.
  • The class implementing IConfigureThisEndpoint is not public.
  • More than one implementation of IConfigureThisEndpoint exists.
  • The NServiceBus.Host.exe is scanning the directory (and sub-directories) from where it is running, and finds more than one assembly containing an implementation of IConfigureThisEndpoint.
  • In one Visual Studio solution, different assemblies are referencing different NServiceBus versions, and those assemblies reference each other.
    • For example, the messages assembly is compiled against an NServiceBus version different from the endpoint assembly that references it.