我正在按照以下说明进行操作Quartz.Net 的教程 http://quartznet.sourceforge.net/tutorial/index.html非常接近,但我在尝试调试我的项目时遇到启动错误。
The type initializer for 'Quartz.Impl.StdSchedulerFactory' threw an exception.
我在网上确实找不到任何帮助。这是配置问题吗?有人知道我可以在哪里获得需要配置的简单列表吗?
(我使用的是Quartz.Net 2.0)
内部异常:{“无法从配置节‘common/logging’获取 Common.Logging 的配置。”}
您很可能没有引用所有必需的程序集,例如“Common.Logging.dll”。
Update
构造函数失败是因为你的app.config
or 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>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)