Alright, Here is my situation
I have created a multithreaded app with a windows service that does some File Input output operations and running of excel macros from a network location.
I need to run this multithreaded application continuously. I am thinking scheduled task is not a great idea in the sense that the starting and the stopping (graceful exit of all the threads) will not be possible.
If i create a service....
I understand that I will not be seeing any user interface through the windows service but I would like to have the flexibility to look at the excel report for debugging purposes (For example if there is an issue and the report hangs during running of the macro and pops up a msgbox....).
So, I went ahead and checked "Interact with Desktop" for this service. It works fine except that it only allows me to use local system but not any other account credentials.
Is there anyway that I can use different account credentials along with "Interact with Desktop property" set for the service?
or
Is there any other way of running my application using other than a windows service or a scheduled task that will allow me to handle the start and stop of the application?
Thanks for the help
I have created a multithreaded app with a windows service that does some File Input output operations and running of excel macros from a network location.
I need to run this multithreaded application continuously. I am thinking scheduled task is not a great idea in the sense that the starting and the stopping (graceful exit of all the threads) will not be possible.
If i create a service....
I understand that I will not be seeing any user interface through the windows service but I would like to have the flexibility to look at the excel report for debugging purposes (For example if there is an issue and the report hangs during running of the macro and pops up a msgbox....).
So, I went ahead and checked "Interact with Desktop" for this service. It works fine except that it only allows me to use local system but not any other account credentials.
Is there anyway that I can use different account credentials along with "Interact with Desktop property" set for the service?
or
Is there any other way of running my application using other than a windows service or a scheduled task that will allow me to handle the start and stop of the application?
Thanks for the help