B
bkbartje
Guest
Hello,
I have created a Windows service which I manage(install/stop/start) using my WPF application.
at some point I triggered the start action twice in my WPF application and I could see in my logging the application was running twice. I didn't check the Task Manager at that time but I just killed the service and started it again.
When I try to reproduce this issue I constantly get this error "Win32Exception: An instance of the service is already running."
So it's not possible to run the service multiple times which is ok.
my question is shouldn't windows prevent me from running the service multiple times? or should I prevent this in code?
Continue reading...
I have created a Windows service which I manage(install/stop/start) using my WPF application.
at some point I triggered the start action twice in my WPF application and I could see in my logging the application was running twice. I didn't check the Task Manager at that time but I just killed the service and started it again.
When I try to reproduce this issue I constantly get this error "Win32Exception: An instance of the service is already running."
So it's not possible to run the service multiple times which is ok.
my question is shouldn't windows prevent me from running the service multiple times? or should I prevent this in code?
Continue reading...