I have developed a Windows Service in VB.NET 2008 which is doing the following on start,
- Executing an application (.exe file)
- Creating a scheduled task with Windows Task Scheduler for running a batch file at scheduled time
I am able to accomplish the above but, when the service starts it creates multiple instances of the application it has executed and continues to create until the system freezes and i have to reboot it.
I tried a workaround by letting the service check registry key value and if the value is valid then execute the code else do not execute. But, even after this check there is no change. The service still continues to create multiple instances of the application and system freezes and lastly i have to reboot it.
Please let me know what needs to be done to overcome such situation.