Problem with System.Timers.Timer not firing in a Windows service? Well switch to the System.Threading.Timer instead!!!
Ok so since posting about a System.Timers.Timer problem that I had quite a while ago on several newsgroups/mailing lists, I've received several emails asking about what the solution to the problem is/was so I decided it might be about time to let everyone in on it. Below is the basic email I've been sending out in reply to those messages...
I highly recommend that you switch to the System.Threading.Timer instead. Please read this thread, it has a couple of parts [0][1][2], it will give you great insight as to why the problem is occurring. Best of luck and I hope that helps. Regards, Sam
[1]
http://discuss.develop.com/archives/wa.exe?A2=ind0307A&L=DOTNET-CLR&D=0&I=-3&P=1118
[1]
http://discuss.develop.com/archives/wa.exe?A2=ind0309D&L=DOTNET-CLR&P=R5347&I=-3
[2]
http://discuss.develop.com/archives/wa.exe?A2=ind0306D&L=DOTNET-CLR&P=R1007&D=0&I=-3