I have a GoDaddy Shared Hosting plan and I have several ASP.NET 4.0 websites. I have some cronjob-like functionality for performing a web-related task every 5 minutes. I've put the initialization logic with timers into my Global.asax Application_Start
method. My task works when my server is active (e.g. requests are made), but I've got a problem: whenever my application is recycled, my timers are not registered as Application_Start
isn't called until a request is made. I don't have an active site and I can't rely on a request to be made to my site for my application to start. I've searched and found Autostart module which is nice but since I'm on a shared hosting (and since GoDaddy is not a customer-friendly company when it comes to solving customer problems) I can't use this module as it needs to be installed at the machine/IIS level. The same goes for Application Initialization module too.
How can I autostart my app after recycle in a shared hosting environment without waiting for an external request?