9 Comments

If you’re trying to use the NServiceBus.Host.exe in a x64 system, you may encounter the following exception:

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: EndpointConfig...

To fix this, make sure that all your projects target the same platform (x64 / x86) as your NServiceBus.Host.exe.

In my case the server dll and the messages dll were build with the x86 switch and the NServiceBus.Host.exe was built with “any cpu”. This combination threw an exception as soon as I started the exe-file. Creating a configuration file for the host and defining the EndPointConfigurationType in it didn’t help. Changing the server dll to be build with “any cpu” didn’t help. But changing both the server dll and the messages dll to use the “any cpu” switch immediately fixed the problem.

Comments

Comment by Get onpageseo plugin

Get onpageseo plugin...

NServiceBus: solving the No endpoint configuration found error - Mikael Koskinen...

Comment by pochette louis vuitton

pochette louis vuitton...

wow!this is so cool,i like it very much!This article is more suitable for me and Very Wonderful, I think it is very valuable!...

Comment by cheap hocky jerseys

cheap hocky jerseys...

Thanks for sharing, i like your article and opinion....

Comment by cheap nba jerseys

cheap nba jerseys...

Thanks for sharing, i like your article and opinion....

Comment by oakley womens sunglasses

oakley womens sunglasses...

Thanks for sharing, i like your article and opinion....

Comment by porn

porn...

MILF cam websites verify that anyone can make money via the internet,...

Comment by 九州娛樂城

九州娛樂城...

Amazing article, thank You !!...