1
我目前正試圖在我的Windows服務器上運行Quartz.net 2.2.3新創建的webservice。但我發現了以下錯誤:Quartz.net 2.2.3 - 無法啓動Windows服務
Topshelf.Hosts.StartHost Error: 0 : The service failed to start., System.Invalid
OperationException: Cannot start service QuartzTest on computer '.'. ---> System
.ComponentModel.Win32Exception: The service did not respond to the start or cont
rol request in a timely fashion
--- End of inner exception stack trace ---
at System.ServiceProcess.ServiceController.Start(String[] args)
at Topshelf.Runtime.Windows.WindowsHostEnvironment.StartService(String servic
eName)
at Topshelf.Hosts.StartHost.Run()
這是我使用的配置:我知道這對topshelf相關
quartz.scheduler.instanceName = ServerScheduler
quartz.jobStore.type = Quartz.Impl.AdoJobStore.JobStoreTX, Quartz
quartz.jobStore.useProperties = true
quartz.jobStore.dataSource = default
quartz.jobStore.driverDelegateType = Quartz.Impl.AdoJobStore.SqlServerDelegate, Quartz
quartz.jobStore.tablePrefix = QRTZ_
# if running MS SQL Server we need this
quartz.jobStore.lockHandler.type = Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz
quartz.dataSource.default.connectionString = {connectionstring}
quartz.dataSource.default.provider = SqlServer-20
# configure thread pool info
quartz.threadPool.type = Quartz.Simpl.SimpleThreadPool, Quartz
quartz.threadPool.threadCount = 1
quartz.threadPool.threadPriority = Normal
# job initialization plugin handles our xml reading, without it defaults are used -->
quartz.plugin.xml.type = Quartz.Plugin.Xml.JobInitializationPlugin, Quartz
quartz.plugin.xml.fileNames = ~/quartz_jobs.xml
# export this server to remoting context
quartz.scheduler.exporter.type = Quartz.Simpl.RemotingSchedulerExporter, Quartz
quartz.scheduler.exporter.port = 571
quartz.scheduler.exporter.bindName = QuartzServerTest
quartz.scheduler.exporter.channelType = tcp
,但我不知道該怎麼辦。
謝謝。
我試着用一個簡單的Quartz 2.2.3版本,我得到同樣的問題。 – Matrix818181
我有一個XML完全工作版本在:http://stackoverflow.com/questions/22355840/quartz-net-error-in-web-config-file(答案,而不是問題0 – granadaCoder