Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7089021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:52:18+00:00 2026-05-28T07:52:18+00:00

I am using Quartz.Net to schedule task. I have tried like wise. Started a

  • 0

I am using Quartz.Net to schedule task. I have tried like wise.

Started a visual studio console application and added two reference i.e Quartz.dll and Common.Logging.dll along with System.Web.Services;

Then i coded a little bit for a normal task as provided on the link http://simplequartzschedulerincsharp.blogspot.com/
(They are claiming that its working)

But as soon as i tried to Run the program it gave error as “Missing reference to Quartz.all” but i have added this already.

Why this is happening ?

Also somewhere i noted that one need to install the Quartz.Server.Service to use it etc. etc.

Please guide me and please dictate me a simple but working example and points i am missing ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:52:19+00:00Added an answer on May 28, 2026 at 7:52 am

    The example on the site is probably outdated.

    I made some modifications to the classes used and now it runs:

    using System;
    using Quartz;
    using Quartz.Impl;
    using Quartz.Impl.Triggers;
    // Necessary references:
    // Quartz dll
    // Common.Logging
    // System.Web
    // System.Web.Services
    
    namespace QuartzExample
    {
        class Program
        {
            private static IScheduler _scheduler;
    
            static void Main(string[] args)
            {
                ISchedulerFactory schedulerFactory = new StdSchedulerFactory();
                _scheduler = schedulerFactory.GetScheduler();
                _scheduler.Start();
                Console.WriteLine("Starting Scheduler");
    
                AddJob();
            }
    
            public static void AddJob()
            {
                IMyJob myJob = new MyJob(); //This Constructor needs to be parameterless
                JobDetailImpl jobDetail = new JobDetailImpl("Job1", "Group1", myJob.GetType());
                CronTriggerImpl trigger = new CronTriggerImpl("Trigger1", "Group1", "0 * 8-17 * * ?"); //run every minute between the hours of 8am and 5pm
                _scheduler.ScheduleJob(jobDetail, trigger);
                DateTimeOffset? nextFireTime = trigger.GetNextFireTimeUtc();
                Console.WriteLine("Next Fire Time:" + nextFireTime.Value);
            }
        }
    
        internal class MyJob : IMyJob
        {
            public void Execute(IJobExecutionContext context)
            {
                Console.WriteLine("In MyJob class");
                DoMoreWork();
            }
    
            public void DoMoreWork()
            {
                Console.WriteLine("Do More Work");
            }
        }
    
        internal interface IMyJob : IJob
        {
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using quartz.net to schedule regular events within asp.net mvc application. The scheduled
I am using Quartz.Net to schedule my jobs in my application. I was just
I'm using Quartz.NET for job scheduling in my ASP.NET application, and I have created
I have been using Quartz.NET in my application a lot over the past few
I'm using Quartz.NET for an application I am creating, and I currently have an
I'm using Quartz in my .NET application. At first, I was using it in
We're using Quartz.Net to schedule about two hundred repeating jobs. Each job uses the
I'm using Quartz.NET to schedule a job which loads a bunch of data from
i have a problem with using cron trigger in Quartz.net. My code: var trigger
greetings all i have a web application using (spring-hibernate) frameworks and when tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.