Hello
I’m using TopShelf to create a Windows service hosting an MVC application (HttpSelfHostServer). On the backend the code accesses an MS SQL 2012 server (using the entity framework) and our NetApp storage system. I’m using TopShelf 3.1.4 with NLog 3.2.0.0. The application is productive.
After installation when starting the service I get the expected log entries. However sometimes I seem to have the case when there is an unhandled exception in the code. In these cases the service just dies, without writing any log entry. In the Windows event log I just have the following entry: The ServiceName service terminated unexpectedly. It has done this 1 times(s). There is no additional information and as said also no log entry.
This makes it very difficult to find out what actually happened. As I have read in the list, TopShelf registers for all unhandled exceptions and actually should stop the service gracefully. However this is not the case here. The service just dies.
It there a way to still get a log entries and additional information about what happened?
Philipp
--
You received this message because you are subscribed to the Google Groups "topshelf-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topshelf-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.