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