The type initializer for "Quartz.Impl.StdSchedulerFactory" threw an exception

I carefully follow the instructions of the Quartz.Net tutorial , but when I try to debug my project, I get an error at startup.

 The type initializer for 'Quartz.Impl.StdSchedulerFactory' threw an exception.

I could not find any help on the Internet. Is this a configuration problem? Does anyone know where I can get a simple list of what needs to be configured?

(I am using Quartz.Net 2.0)

INNER EXCEPTION: {"Failed to get configuration for Common.Logging from configuration section" common / logging "." }

+5
source share
3 answers

, , , . "Common.Logging.dll".

, app.config web.config common\logging. .config :

  <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>
+4

, Common.Logging.Log4Net dll .

, dll Common.Logging.Log4Net Quartz.NET-2.0.1\lib\2.0:

Quartz.NET-2.0.1.zip(9.7 MB)

log4net 1.2.10.0.

0

Quartz.net.

Quartz.net . :

  • Common.Logging 2.1.2.0
  • Common.Logging.Log4Net1211 2.1.0.0
  • log4net 1.2.11.0
  • Quartz 2.2.2.400
0

All Articles