I get this message:
Host doesn’t support hosting of multiple endpoints. Endpoint classes
found: foo.bar.Service.Endpoint.PublisherConfig,
foo.bar.Service.Endpoint, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null, foo.bar.Service.Endpoint.PublisherConfig,
foo.bar.Service.Endpoint, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null You may have some old assemblies in your runtime
directory. Try right-clicking your VS project, and selecting ‘Clean’.
I have tried cleaning the project, with no luck. If I close VS and rebuild the solution, it works, once, then stops working again. This is also the only solution I can find online.
What I find strange, is that it seems to say it found the same endpoint twice?
EDIT: I had a look through the bin folder, and the files created. I found these files:
foo.bar.Service.Endpoint.dll
foo.bar.Service.Endpoint.mm.dll
Comparing this to a co-workers bin folder, he did not have the file with .mm.dll, and his works fine. Difference in systems, is me running win8, him running win7. Both on vs2012, and same source code, etc…
When i delete the .mm.dll file, it works and runs, but when rebuilding it appears again.
Your problem is not NServiceBus but Mighty Moose (ContinuousTests).
MM is creating a filen named [assemblyname].mm.dll in your bin/Debug folder. Disable MM and you should be fine (just pause the MM-engine is not enough).