I am running a recurring job every hour. My application is a Windows Service. The job seems to run correctly but the Dashboard is showing errors. On the Recurring Jobs screen I see an “Could not load assembly” exception under the Job column and “Could not find the target method” under the Processing Jobs screen.
I am executing the Recurring Job like this…
BackgroundJobServerOptions options = new BackgroundJobServerOptions { ShutdownTimeout = TimeSpan.FromMinutes(1) };
_server = new BackgroundJobServer(options);
RecurringJob.AddOrUpdate(“myJobId”, () => ExecuteOcr(JobCancellationToken.Null), Cron.HourInterval(1));
ExecuteOcr is a public method within the same class.