car*_*son 5 c# quartz-scheduler quartz.net typeinitializeexception
我非常关注Quartz.Net教程中的指示,但是在尝试调试项目时遇到了启动错误.
The type initializer for 'Quartz.Impl.StdSchedulerFactory' threw an exception.
Run Code Online (Sandbox Code Playgroud)
我在网上找不到任何帮助.这是配置问题吗?有谁知道我在哪里可以得到一个需要配置的简单列表?
(我正在使用Quartz.Net 2.0)
内部异常:{"无法从配置部分'common/logging'获取Common.Logging的配置."}
您很可能没有引用所有必需的程序集,例如“Common.Logging.dll”。
更新
构造函数失败,因为您的app.configorweb.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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8345 次 |
| 最近记录: |