我正在尝试使用作业服务进行负载平衡。我使用adojobstore设置作业并触发详细信息到我的本地数据库。当我创建作业,添加到数据库并开始工作时,它正常运行。但是当我尝试连接到数据库并运行它无法正常工作的作业。
我接受了这两个错误
错误检索作业
处理错过预定开火时间的1个触发器
那么我该怎么做才能解决这个错误
这是我的quartz.config
# You can configure your scheduler in either <quartz> configuration section
# or in quartz properties file
# Configuration section has precedence
quartz.scheduler.instanceName = MyScheduler
quartz.scheduler.instanceId = AUTO
quartz.threadPool.type = Quartz.Simpl.SimpleThreadPool, Quartz
# this section configures the scheduler to use sqlite as the jobstore
# to use the RAM store just comment all of this out
# to use the sqlite store, uncomment all of this
quartz.jobStore.type = Quartz.Impl.AdoJobStore.JobStoreTX, Quartz
quartz.jobStore.dataSource = default
quartz.jobStore.tablePrefix = QRTZ_
quartz.jobStore.clustered = true
quartz.jobStore.lockHandler.type = Quartz.Impl.AdoJobStore.SimpleSemaphore, Quartz
quartz.jobStore.driverDelegateType = Quartz.Impl.AdoJobStore.StdAdoDelegate,
Quartz
quartz.dataSource.default.provider = SqlServer-20
quartz.jobStore.useProperties = true
quartz.jobStore.selectWithLockSQL = SELECT * FROM {0} LOCKS UPDLOCK WHERE LOCK_NAME = @ lockName
quartz.dataSource.default.connectionStringName = QuartzStore
quartz.dataSource.default.connectionString = Data Source=suleyman_pc;Initial Catalog=QuartzDeneme;Integrated Security=SSPI;
#quartz.scheduler.threadsInheritContextClassLoaderOfInitializer = true
# this section configures the scheduler to use sql server ce as the jobstore
#quartz.jobStore.type = Quartz.Impl.AdoJobStore.JobStoreTX, Quartz
#quartz.jobStore.dataSource = default
#quartz.dataSource.default.connectionString = Data Source=quartz.sdf;Persist Security Info=False;
#quartz.jobStore.tablePrefix = QRTZ_
#quartz.jobStore.clustered = true
#quartz.jobStore.lockHandler.type = Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz
#quartz.jobStore.driverDelegateType = Quartz.Impl.AdoJobStore.SqlServerDelegate, Quartz
#quartz.dataSource.default.provider = SqlServerCe-351
#quartz.jobStore.useProperties = true
这是我的Program.cs,用于表明工作。!!
ISchedulerFactory sf = new StdSchedulerFactory();
IScheduler sched = sf.GetScheduler();
sched.Start();
Thread.Sleep(TimeSpan.FromMinutes(2));
sched.Shutdown(true);
我可以为这个错误做些什么 谢谢你的答案......