jlucansky / Quartzmin

Quartzmin is powerful, easy to use web management tool for Quartz.NET
MIT License
551 stars 180 forks source link

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

Open yoramda opened 4 years ago

yoramda commented 4 years ago

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

kavatari commented 4 years ago

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 commented 4 years ago

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

duytech commented 4 years ago

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 commented 4 years ago

@jlucansky

KhaledSMQ commented 3 years ago

I have same problem

ExcaliburVT commented 3 years ago

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?

dsbcPedro commented 3 years ago

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

public async Task 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

codermrrob commented 2 years ago

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);
gerneio commented 2 years ago

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.