I don’t know how to use Quartz.dll in ASP.NET. Where should we write the code for scheduling jobs to trigger mail every morning?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have a couple of options, depending on what you want to do and how you want to set it up. For example, you can install a Quartz.Net server as a standalone windows serviceor you can also embed it inside your asp.net application.
If you want to run it embedded, then you can start the server from say your global.asax, like this (from the source code examples, example #12):
If you run it as a service, you would connect remotely to it like this (from example #12):
Once you have a reference to the scheduler (be it via remoting or because you have an embedded instance) you can schedule jobs like this:
Here’s a link to some posts I wrote for people getting started with Quartz.Net:
http://jvilalta.blogspot.com/2009/03/getting-started-with-quartznet-part-1.html