Threading and Timer in asp.net dies after a while but runs ok on localhost

Discussion in 'ASP.NET 2.0' started by wisemx, Nov 8, 2008.

  1. How do I setup/code an scheduled task? Can you give some pointers or a source with more info?
     
  2. Hi,
    I have a web application running on discountasp. Its web address is www.dsepirates.com/dsedb/intradata/

    In the background of my website, I fork an infinite thread in the background to do some maintenance work. The thread is forked from a global.aspx.
    This thread from time to time runs a Timer. And this infinite thread turns off and on the timer every once in a while.

    Now the problem is that, when I run the website from local host everything works just fine.
    But on discoountasp, the thread works but the timer stops working after a while.

    Any idea. I am completely lost here. Maybe you guys can help me out on this.


    Omi
     
  3. Just one more note: basically, all I have to do is perform some scheduled taks.
     
  4. wisemax,
    thanks very much for the reply. Currently the shortest time period is 15 min. Is it possible to get 5 min period tasks?
     

Share This Page