APPLICATION TO RUN EVERY FEW SECONDS
-
Hi All, I a page in ASP.net i want this page to run every two hours with out any manual intervation. How could i do it please? Inshort,i want the application to execute itself every two hours. Thank you.
-
Have you considered that this is not what ASP.NET is used for? There are other, much more appropriate ways to achieve this such as sheduled tasks, or windows services.
Thank you very much for your response. How will i setup the following URL to run every 2 hour. http://localhost:1257/Update\_Table/Default.aspx Thank you kibrom
-
Thank you very much for your response. How will i setup the following URL to run every 2 hour. http://localhost:1257/Update\_Table/Default.aspx Thank you kibrom
-
Have you considered that this is not what ASP.NET is used for? There are other, much more appropriate ways to achieve this such as sheduled tasks, or windows services.
Well, actually I do understand the need for this kind of automation. Using ASP.NET to automize things can be very handy, when running the asp.net app on a shared webspace...much cheaper than buying dedicated servers. If using dedicated servers I agree, a windows service would do better.
ASP.NET SEO Blog
-
Hi All, I a page in ASP.net i want this page to run every two hours with out any manual intervation. How could i do it please? Inshort,i want the application to execute itself every two hours. Thank you.
Try this one: http://www.codeproject.com/KB/aspnet/ASPNETService.aspx[^] - that´s pretty much the best approach to this problem.
ASP.NET SEO Blog
-
He is in fact polite, calm and poised and he has helped out in great depth. You ought to first read his full suggestion before embarking on your journey of throwing a counter-thread for clarification. Coming to your question, you can actually have a simple VBScript (VBS) file to use XmlHttp to hit the URL and get the response. You can have this VBS file scheduled to execute from your Windows Scheduled Tasks.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
Try this one: http://www.codeproject.com/KB/aspnet/ASPNETService.aspx[^] - that´s pretty much the best approach to this problem.
ASP.NET SEO Blog
As one of the messages on that article states..."what a mess". There is no way that using the Cache is a good way to schedule tasks, mostly because you cannot guarantee that the cached item will not be removed before you ask it to (ie, in low memory conditions). You end up having to bolt workaround after workaround on top of this olution to handle early expiration of cache items. Do yourself a favour and write a VBS and use windows scheduler as someone suggested above.