I'm following the directions on Quartz.Net's tutorial pretty closely, but I'm getting a start error when trying to debug my project.
The type initializer for 'Quartz.Impl.StdSchedulerFactory' threw an exception.
I couldn't really find any help online. Is this a configuration problem? Anybody know where I can get a straightforward list of what needs to be configured?
(I'm using Quartz.Net 2.0)
INNER EXCEPTION: {"Failed obtaining configuration for Common.Logging from configuration section 'common/logging'."}
You most likely do not reference all required assemblies e.g. "Common.Logging.dll".
Update
The constructor fails because your app.config
or web.config
does not contain a section for common\logging
. Does your .config
file contains the following section:
<configSections>
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
</configSections>
<common>
<logging>
<factoryAdapter type="Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging">
<arg key="level" value="DEBUG" />
<arg key="showLogName" value="true" />
<arg key="showDataTime" value="true" />
<arg key="dateTimeFormat" value="yyyy/MM/dd HH:mm:ss:fff" />
</factoryAdapter>
</logging>
</common>