Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5954021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:54:38+00:00 2026-05-22T17:54:38+00:00

Background: I have two NServiceBus endpoint projects in my solution. Both are NServiceBus subscribers

  • 0

Background:

  • I have two NServiceBus endpoint projects in my solution.
  • Both are NServiceBus subscribers and contain a message handler to one message.
  • Each subscriber project handles a message from one of two different publishers. As such, one project references a messages DLL from one publisher, and the other references a messages DLL from the other publisher.
  • Both publishers are external to my solution.
  • Apart from the messages DLLs, both subscriber projects reference the same binaries for NServiceBus, and additionally have the exact same setup (UnicastBusConfig, EndpointConfig, appSettings, etc)

One subscriber project runs fine, but the other one fails with this error:

Unhandled Exception: System.InvalidOperationException: No endpoint configuration found in scanned assemblies. This usually happens when NServiceBus fails to load your assembly contaning IConfigureThisEndpoint. Try specifying the type explicitly in the NServiceBus.Host.exe.config using the appsetting key: EndpointConfigurationTypeScanned path: my path here
at NServiceBus.Host.Program.ValidateEndpoints(IEnumerable`1 endpointConfigurationTypes)
at NServiceBus.Host.Program.GetEndpointConfigurationType()
at NServiceBus.Host.Program.Main(String[] args)

My suspicion is that the problem must lie with the NServiceBus publisher messages DLL of the subscriber which is failing to start up. Howerver, I am not sure how to work out what is wrong with this. I have looked at:

  • both the NServiceBus publishers messages DLL’s manifests using ildasm and they are identical (with regards to processor flags and NServiceBus DLL versions referenced).
  • the NSB messages projects, which were both built with .Net 3.5 Framework.

I am going insane here and have burned almost a day trying to get this working. Any help would be massively appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:54:39+00:00Added an answer on May 22, 2026 at 5:54 pm

    Well, the exception tells you exactly what it is about.
    It is looking for some class that implements IConfigureThisEndpoint.

    Three things come to my mind:

    • You forgot to implement it (have a look at the NServiceBus samples)
    • You implemented it but your class is not public or internal
    • You have more than one assembly in the folder or subfolder in which your files are located that implement IConfigureThisEndpoint
    • You have a mismatch between the framework versions of your assemblies and the NServiceBus assemblies, i.e. you’re using NServiceBus compiled for .NET 3.5 but Visual Studio 2010 created your endpoint (by default) as .NET 4.0. (point added by David Boike)
    • The messages DLL the failing subscriber is referencing is delay-signed. This is causing it to fail with the “No endpoint configuration found…” error. Build a strong named version of the messages DLL locally solves the problem. (point added by thecolour)
    • The “No endpoint config…” exception seems to be thrown for lots of different reasons, and it kind of masks the actual reason. The exception basically only says that the configuration could not befound, it does not specify what is the original cause of the problem. (point added by thecolour)
    • The NServiceBus version that we use is not compiled against .NET v4. So we need to create a config file NServiceBus.Host.exe.config that configures the .NET version to be used.
      • Do not forget to set the afore mentioned NServiceBus.Host.exe.config file to be copied into the /bin/Debug folder in the properties windows. Happens to me all the time… 😉

    The NServiceBus.Host.exe.config file should look like this:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
       <startup>
          <supportedRuntime version="v4.0" />
       </startup>
       <runtime>
           <loadFromRemoteSources enabled="true" />
        </runtime>
    </configuration>
    

    I think that the “No endpoint config…” exception seems to be thrown for lots of different reasons, and it kind of masks the actual reason. Anyone know a nice way of diagnosing these kind of problems?

    The last point happend to me, too. It happended after renaming my assembly and not cleaning the project directory.
    NServiceBus then ran through all files and found both the old named assembly AND the new named assembly and ended with the same exception.

    Please note that this also happens if the second assembly containing the same interface implementation may cause tis error if it is located inside a subfolder. This behaviour had caused me some debugging headaches as I previously had copied my file to a subfolder as a short term backup…

    [Edit]

    Edited to add the additional items by the other authors in this thread for completeness.

    [EDIT 2]

    Added more information about NServiceBus.Host.exe.config.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background information Let's say I have two database servers, both SQL Server 2008. One
Background: We have two directories of Crystal Reports for both the web side of
Background This question is in two parts. I have a one-way WCF operation hosted
Background I have two services that need to communicate with each other over a
okay so I have two projects one in which I have done all the
First, a little background (greatly simplified): I have two classes, one called Entity and
Background: I have two tables master and detail . each row in detail contains
Background: I have two web pages, one is a list of things, and the
I want to have my page to have two background images: one at the
Brief background: I have two-step login page, which after step 1 sends one-time code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.