When you use timers you may encounter that the timer may not run on deployed server
This problem occurs because the timer feature is not enabled by default and requires enabling through a definition.
The timer feature is not enabled by default and requires enabling through the definition file by adding the following key to the WebGUI section.
This enabling process is due to the fact that timers are not yet considered to be 100% safe as the still lack a mechanism for self destruction. Meaning that timers need to be shout down by calling the Timer.Stop method. This is a temporary process until the timers feature is finalized. This does not mean you can not work with timers as the interface will not change and the only issue we have to solve is that it would be safe to forget to shout down the timer
To work around this problem, follow these steps:
- Open the Web.config file and find the <WebGUI> tag
- If exists set the <TimersEnabled Mode="On" /> Tag else add the specific tag.
- Save your Web.Config file
- Rebuild your solution
For more information, click the following article number to view the article in the Gizmox Knowledge Base: