I am having an issue with an application that I am creating. I am trying to start a windows service through my C# app. When I click my start button, it looks like everythi
This is an old thread, but google got me here. My services, even after successfully starting, would still query back as stopped. If you add
service.Refresh();
It will query the actual current status instead of the stored state from a previous query. I don't know why it works like this, but it does.
P.S.: I added a minute long time out and still got a service is stopped response without the refresh.