Support Microsoft.Data.Sqlite provider on .NET Core
See original GitHub issueUsing Version: 3.0.0-alpha3
Trying to use Sqlite with Quartz scheduler with System.Data.Sqlite.Core (1.0.105.2) with the following configuration:
NameValueCollection props = new NameValueCollection { //{ “quartz.serializer.type”, “binary” }, { “quartz.threadPool.type”, “Quartz.Simpl.SimpleThreadPool, Quartz” }, { “quartz.threadPool.threadCount”, “10” }, { “quartz.jobStore.type”, “Quartz.Impl.AdoJobStore.JobStoreTX, Quartz” }, { “quartz.jobStore.misfireThreshold”, “60000” }, { “quartz.jobStore.lockHandler.type”, “Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz” }, { “quartz.jobStore.useProperties”, “true” }, { “quartz.jobStore.dataSource”, “default” }, { “quartz.jobStore.tablePrefix”, “QRTZ_” }, { “quartz.jobStore.driverDelegateType”, “Quartz.Impl.AdoJobStore.SQLiteDelegate, Quartz” }, { “quartz.dataSource.default.provider”, “SQLite-10” }, { “quartz.dataSource.default.connectionString”, “Data Source=quartznet.db;Version=3;” }
};
Actual behavior
Quartz.SchedulerException: Could not Initialize DataSource: SqliteDS —> System.ArgumentOutOfRangeException: There is no metadata information for provider ‘SQLite-10’ Parameter name: providerName at Quartz.Impl.AdoJobStore.Common.DbProvider.GetDbMetadata(String providerName) in C:\projects\quartznet-6fcn8\src\Quartz\Impl\AdoJobStore\Common\DbProvider.cs:line 118 at Quartz.Impl.AdoJobStore.Common.DbProvider…ctor(String dbProviderName, String connectionString) in C:\projects\quartznet-6fcn8\src\Quartz\Impl\AdoJobStore\Common\DbProvider.cs:line 74 at Quartz.Impl.StdSchedulerFactory.<Instantiate>d__65.MoveNext() in C:\projects\quartznet-6fcn8\src\Quartz\Impl\StdSchedulerFactory.cs:line 614 — End of inner exception stack trace — at Quartz.Impl.StdSchedulerFactory.<Instantiate>d__65.MoveNext() in C:\projects\quartznet-6fcn8\src\Quartz\Impl\StdSchedulerFactory.cs:line 623 — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Quartz.Impl.StdSchedulerFactory.<GetScheduler>d__69.MoveNext() in C:\projects\quartznet-6fcn8\src\Quartz\Impl\StdSchedulerFactory.cs:line 1118 — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at BackgroundProcessingWithQuartz.Program.<RunProgram>d__1.MoveNext() in /Users/Projects/BackgroundProcessingWithQuartz/BackgroundProcessingWithQuartz/BackgroundProcessingWithQuartz/Program.cs:line 44 [See nested exception: System.ArgumentOutOfRangeException: There is no metadata information for provider ‘SQLite-10’ Parameter name: providerName at Quartz.Impl.AdoJobStore.Common.DbProvider.GetDbMetadata(String providerName) in C:\projects\quartznet-6fcn8\src\Quartz\Impl\AdoJobStore\Common\DbProvider.cs:line 118 at Quartz.Impl.AdoJobStore.Common.DbProvider…ctor(String dbProviderName, String connectionString) in C:\projects\quartznet-6fcn8\src\Quartz\Impl\AdoJobStore\Common\DbProvider.cs:line 74 at Quartz.Impl.StdSchedulerFactory.<Instantiate>d__65.MoveNext() in C:\projects\quartznet-6fcn8\src\Quartz\Impl\StdSchedulerFactory.cs:line 614
Steps to reproduce
What I am missing? Everything is installed through NuGet on my Visual Studio for Mac. Plus why are there are references to the C Drive when the dll is actually running on a Mac. Please help.
// scheduler and job configuration, SystemTime prefereably set to fixed point
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Sorry for the delay, here’s an example I quickly put together, your mileage might vary. NET Core 2.0 console app referencing required libs
Got it, thanks. As I am not familiar with this project, I had no idea of the scripts.