Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have to implement task scheduler where i have to send notification in every 1 min.
so how can i implement this . i have to use IIS server setting or anything else please guide me.

What I have tried:

Checked IIS SERVER SETTING . Then try to write script for this.
Posted
Updated 20-May-16 3:38am

This isn't a good fit for a web infrastructure as web sites are generally stateless and not a constantly running activity. You can use a web page to set the data in your database but you're going to need a server side process or service to execute every minute - maybe you could set something up with the SQL Server Agent.
 
Share this answer
 
asp.net is a bad technology to use for this as it is a request\response technology, it runs in response to an http request, not on a timer. Also you can't ever guarantee your site is ever running as IIS may tear it down if it has been idle, or if it is exceeding its resource limits.

Anyway, look at a product called quartz.net which will help you schedule tasks, but don't use it for anything critical due to issues mentioned above, if it is critical use a windows service instead.
 
Share this answer
 

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