I had a different problem that was solved by updating the NServiceBus package in one of the projects.
------------------------------------------------------------------
The following was due to the project's NServiceBus not updated...
I tried changing all to 64, did nothing.
Changed all to 32 bit, and get
An unhandled exception of type 'System.InvalidOperationException' occurred in NServiceBus.Host.exe
With the additional information:
No endpoint configuration found in scanned assemblies.
This usually happens when NServiceBus fails to load your assembly containing IConfigureThisEndpoint.
Try specifying the type explicitly in the NServiceBus.Host.exe.config using the appSetting key: EndpointConfigurationType, Scanned path: ...
The problem is that this is an NService-Host project automatically configured by using Nuget.
The only changes I did were to set the persistence (with Nuget of RavenDB, adding a using directive to NServiceBus.Persistence and changing the <Set Persistence Here> to RavenDbPersistence)
and to set the endpointconfig with an endpointclass name so:
[EndpointName("crb.mpl.BFirstLoanData")]
public class EndpointConfig : IConfigureThisEndpoint
Moved everything back to 64 bits and get the "target invocation" exception
RavenDB is up and running, and everything in previous projects worked ok.
== SOLVED!! ==
Then I started listing the versions in my projects.
using: Net: 4.52
I found that the failing project had a different version of NServiceBus
NServiceBus" version="5.0.0" targetFramework="net452"
instead of
NServiceBus" version="5.2.4" targetFramework="net452"
I updated and all's well that ends well.