>>We don't need to recompile in order to run the service as a Console app for debugging purposes. Our project is a Console app project and here's what my code looks like:
>
>Thanks, I see you have the option of .OnStart(). This, I wasn't able to make my service run but only by using the Run() approach. See other messages in this thread. It is only when I use the Run() approach, that I was able to start the service successfully from the Services interface. Could it be related to some kind of configuration?I don't know why the .OnStart() wouldn't work for you.
>Also, when you run yours directly by clicking on the EXE, do you have a Windows form?No, as I said it's a Console app. You can't have any UI in a Windows Service ... and I'm betting that you might even have problems if you have anything in the code referencing Windows.Forms, even if you only use it when running interactively. The Console app feature works fine. You can use Console.WriteLine() if you want to show message or just use your usual debugging from Visual Studio.
~~Bonnie