I have written a service to host NServiceBus and for some reason NServiceBus is shutting down almost immediately after starting the service. If I run the executable manually everything works exactly as it should but as a service it decides to shutdown without an error being logged. Below is an example of the log files:
- Selected active license from C:\ProgramData\ParticularSoftware\license.xml
- Security warnings are reported due to opening up some of the security for testing purposes
- Initiating shutdown.
- Shutdown complete.
All of this takes place in 0.48 seconds.
This is a .net 4.6.1 application as my organization doesn't allow .net core at this point.