Quartzmin icon indicating copy to clipboard operation
Quartzmin copied to clipboard

Method not found: 'Quartz.JobBuilder Quartz.JobBuilder.StoreDurably()'.

Open yoramda opened this issue 4 years ago • 9 comments

When using JobStore , trying to save job, i got "Method not found: 'Quartz.JobBuilder Quartz.JobBuilder.StoreDurably()'."

FROM THE LOG FILE :

info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1] Request starting HTTP/1.1 POST https://localhost:5001/Jobs/Save?trigger=false multipart/form-data; boundary=----WebKitFormBoundaryzNR0XrA1PvpsbtGO 1501 info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3] Route matched with {action = "Save", controller = "Jobs"}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] Save(Quartzmin.Models.JobViewModel, Boolean) on controller Quartzmin.Controllers.JobsController (Quartzmin). info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1] Executing action method Quartzmin.Controllers.JobsController.Save (Quartzmin) - Validation state: Valid info: Microsoft.AspNetCore.Mvc.Formatters.Json.Internal.JsonResultExecutor[1] Executing JsonResult, writing value of type '<>f__AnonymousType71[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2] Executed action Quartzmin.Controllers.JobsController.Save (Quartzmin) in 33.3153ms info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2] Request finished in 41.0208ms 400 application/json; charset=utf-8

Thanks in advanced

yoramda avatar Oct 14 '20 21:10 yoramda

Same problem here. Using Quartz.net 3.2

Edit: Using quartz.net v3.0.7 it works pretty nice. Will try to create a pull request for the version 3.2.+

kavatari avatar Oct 18 '20 15:10 kavatari

Easy as it is, the problem is the referenced package version of quartz.net 3.07. used by quartzmin. Forked the repo and updated the reference to 3.2.1

kavatari avatar Oct 18 '20 21:10 kavatari

I had the same problem with asp.net core 3.1 and quartz.net 3.2.0 could someone fix this and make a nuget package? @maikebing

duytech avatar Nov 02 '20 03:11 duytech

@jlucansky

duytech avatar Nov 02 '20 05:11 duytech

I have same problem

KhaledSMQ avatar Nov 08 '20 09:11 KhaledSMQ

I really need to get this running under my .Net Core 3.1/Quartz .net 3.2.0 app and can't find a quartz admin UI that works. @maikebing @jlucansky any chance we can get a new nuget package?

ExcaliburVT avatar Nov 10 '20 22:11 ExcaliburVT

I have made some changes in the code in order to make it work

public async Task<IActionResult> Save([FromForm] JobViewModel model, bool trigger) { .... var t = JobBuilder.Create(); t= t.StoreDurably(true);

                var tmp = BuildJob(t);
                
                await Scheduler.AddJob(tmp, replace: false); 

...

}

I am not using Nuget

dsbcPedro avatar May 13 '21 16:05 dsbcPedro

Worked for me, although I just changed line 173 in JobsController.cs

await Scheduler.AddJob(BuildJob(JobBuilder.Create().StoreDurably()), replace: false)

to :

await Scheduler.AddJob(BuildJob(JobBuilder.Create().StoreDurably(true)), replace: false);

codermrrob avatar Dec 06 '21 07:12 codermrrob

I ended up downloading this repo and making the necessary version changes myself, but looks like there are several other forked repos that have probably already done the same (find here and sort by recent). Main thing was to change from supporting net452 to net461 in order to use Quartz.Net v3.3.3 in all the underlying solutions.

gerneio avatar Dec 15 '21 22:12 gerneio