-
Notifications
You must be signed in to change notification settings - Fork 314
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
An error occurred while initialization of scheduler services An instance of Quartz 3 Scheduler expected #95
Comments
I don't see where you define |
@ytcitsupport-jlin replace "var scheduler = schedulerFactory.GetScheduler().Result;" with "var scheduler = schedulerFactory.GetScheduler().GetAwaiter().GetResult();" and it will work. |
@lucapisano and neither are you. You're blocking on async method. |
The GetAwaiter() method will block the current thread until the async method returns its result and then it gives it back to the caller. |
The only difference between |
Had you resolved the issue? I am having same problem too. |
I'm trying to use CrystalQuartz with my ASP.NET Core application.
Environment:
This is my setup in the
Startup.cs
But the scheduler runs OK but when I open CrystalQuartz on the browser, I saw the error message
Did I set it up wrong?
The text was updated successfully, but these errors were encountered: