Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How would you schedule a task that run on asp.net every 24 hours of interval?
For example, run a night audit automatically at 1:00 AM everyday.
How would you do that?

This asp.net is hosted at a web share hosting site.
I don't have the privilege to modify Windows Service.
Posted
Updated 18-Dec-14 14:06pm
v2
Comments
syed shanu 18-Dec-14 19:37pm    
what type of task you want to schedule.
You can use windows serives if you need to perform application orianted task.
you can use SQL JOB if you want to execute only Stored procedure.
adriancs 18-Dec-14 20:07pm    
Hi, I don't have the privilege to use Windows services as the asp.net is hosted on a web shared hosting.

1 solution

Asp.Net server only runs code when someone requests a page or sends web queries from the server. If it's not hosted on your own server then you won't have access to many server functions. So, in your case, it seems the only way is to run a program on your client PC that sends a request at the scheduled time?
As mentioned in comments, if the web page had SQL behind then that may be an option.
 
Share this answer
 
Comments
Philippe Mori 18-Dec-14 21:52pm    
Some shared hosting providers allows to run pages at specified time. Thus it might be an option.
adriancs 19-Dec-14 2:19am    
Sounds good. Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900