Windows Service
-
Hello All, I am totally new to Windows Service. Trying to develop Windows Service that run only 4 days in a year ie 1st Jan, 1st Apr, 1st Jul and 1st Oct (Quarterly basis). I took a timer but not able to set the Interval. I need to download data from some website on these days and push that data in Database. Can some one help me in setting the timer ... Also can I debug this service to check whether its working fine... Please help me... Thanks in advance...
-
Hello All, I am totally new to Windows Service. Trying to develop Windows Service that run only 4 days in a year ie 1st Jan, 1st Apr, 1st Jul and 1st Oct (Quarterly basis). I took a timer but not able to set the Interval. I need to download data from some website on these days and push that data in Database. Can some one help me in setting the timer ... Also can I debug this service to check whether its working fine... Please help me... Thanks in advance...
You don't need to create a service. It's easier to create a simple console aplication and run it at required times using windows scheduler.
Pavel
-
Hello All, I am totally new to Windows Service. Trying to develop Windows Service that run only 4 days in a year ie 1st Jan, 1st Apr, 1st Jul and 1st Oct (Quarterly basis). I took a timer but not able to set the Interval. I need to download data from some website on these days and push that data in Database. Can some one help me in setting the timer ... Also can I debug this service to check whether its working fine... Please help me... Thanks in advance...
You can attach the debugger to the service after it is running, and then set breakpoints in it to stop it and look in on things. If you need to see what it is doing when it first starts up, then just add some code to your service to sleep for a minute or so to give you time to attach the debugger right after you start the service.
-
Hello All, I am totally new to Windows Service. Trying to develop Windows Service that run only 4 days in a year ie 1st Jan, 1st Apr, 1st Jul and 1st Oct (Quarterly basis). I took a timer but not able to set the Interval. I need to download data from some website on these days and push that data in Database. Can some one help me in setting the timer ... Also can I debug this service to check whether its working fine... Please help me... Thanks in advance...
Hi ! Why don't you use windows scheduler to run your your program? To have debug infomation make sure that you write all needed infotmation in a file for exemple.
-
You don't need to create a service. It's easier to create a simple console aplication and run it at required times using windows scheduler.
Pavel
Thanks Pavel. Would u pls give me a start for the same... Thanks again...
-
Hi ! Why don't you use windows scheduler to run your your program? To have debug infomation make sure that you write all needed infotmation in a file for exemple.
Thanks for the reply. Would u pls give me a start for the same... Thanks again...