I'm running an app using TopShelf as a console app, and I get "Unable to get parent process (ignored)" on startup because we use cmd.exe /c start <top shelf process>. It sounds innocuous, but it is logged as an error. Is it an issue? If not, maybe it should be logged at an Info/Debug level instead?
--
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/groups/opt_out.
I'm running an app using TopShelf as a console app, and I get "Unable to get parent process (ignored)" on startup because we use cmd.exe /c start <top shelf process>. It sounds innocuous, but it is logged as an error. Is it an issue? If not, maybe it should be logged at an Info/Debug level instead?
--
System.ArgumentException Process with an Id of 15196 is not running. at System.Diagnostics.Process.GetProcessById(Int32 processId)
at Topshelf.Runtime.Windows.WindowsHostEnvironment.GetParent(Process child) in d:\BuildAgent-01\work\830c5e1ad1d64d48\src\Topshelf\Runtime\Windows\WindowsHostEnvironment.cs:line 238
I'm using version 3.0.2 from of TopShelf, so the line numbers in mine differ. It looks like the error occurs at this line: