Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have used quartz.net for scheduling the task but it runs twice in production.
my scheduler simply sends email to about 50 persons but quartz always run twice and sometimes failed about 10 to 15 emails.

What I have tried:

I have tried quartz.net open source and schedule a job at 5 am daily.
Posted
Updated 7-Jun-16 2:35am

Why don't you write a windows service and use it as scheduler, just write a program to send mail and schedule it. see below links
Create Windows Service and Send Mail Daily At Fixed Time Using C#[^]
How to schedule windows service in c#?[^]
 
Share this answer
 
Comments
Member 11303752 7-Jun-16 5:25am    
Can we use windows service inside our web application?
koolprasad2003 7-Jun-16 6:56am    
Just create a window service at server and you can easily manage it using asp.net, see below links
http://www.csharp-examples.net/restart-windows-service/
http://forums.asp.net/t/1677902.aspx?how+to+call+window+service+method+into+web+application
http://stackoverflow.com/questions/4489541/how-to-access-remote-computer-windows-service-using-asp-net
You need to create windows service which includes timer control which will call a function .This function will contain the logic you need to execute repeatedly after some time.Make use of timer control's
C#
Elapsed
event. and then you can generate exe and install that exe file. then start windows service.

link : Install / Uninstall .NET Windows Service [C#][^]
 
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