Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yoramda opened this issue Oct 14, 2020 · 9 comments
Open

Comments

@yoramda
Copy link

yoramda commented Oct 14, 2020

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
Copy link

kavatari commented Oct 18, 2020

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
Copy link

kavatari commented Oct 18, 2020

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
Copy link

duytech commented Nov 2, 2020

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
Copy link

duytech commented Nov 2, 2020

@jlucansky

@KhaledSMQ
Copy link

I have same problem

@ExcaliburVT
Copy link

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
Copy link

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
Copy link

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
Copy link

gerneio commented Dec 15, 2021

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.

anddyson pushed a commit to anddyson/QuartzminUpdate that referenced this issue Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants