问题
So I have been following the instructions here for installing Quartz.NET. However, when I try running "Quartz.Server.exe -i" from the command prmopt, I get this error:
Topshelf.HostFactory Error: 0 : The service terminated abnormally, Topshelf.Host
ConfigurationException: The service was not properly configured:
[Failure] Command Line An unknown command-line option was found: SWITCH: i (True
)
[Success] Name QuartzServer
[Success] DisplayName Quartz Server
[Success] Description Quartz Job Scheduling Server
[Success] ServiceName QuartzServer
at Topshelf.Configurators.ValidateConfigurationResult.CompileResults(IEnumera
ble`1 results)
at Topshelf.HostFactory.New(Action`1 configureCallback)
at Topshelf.HostFactory.Run(Action`1 configureCallback)
Does anybody know what is going on?
回答1:
Try using the command line without the "-i"
C:\Program Files (x86)\Quartz.Net>Quartz.Server.exe
回答2:
if you want to install it as a service just use:
Quartz.Server.exe install
instead of -i or -install or /install or ....
if you will run it without any parameter it will be run as command line application
回答3:
I got into same error, and got 'Access Denied' when running through services.msc. Finally the issue was due to a misconfigured entry in quartz config ( wrong delegate ).
来源:https://stackoverflow.com/questions/15951842/trying-to-install-quartz-net-having-issue-running-server