.net中使用第三方dll一定要注意版本问题:网上很多代码都是对的,你执行不了,有时候就是dll版本问题
粘个试过可用的供大家参考:
app.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="quartz" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net1211">
<arg key="configType" value="FILE-WATCH" />
<arg key="configFile" value="~/systemconfig/log4net.xml" />
<arg key="level" value="ALL" />
</factoryAdapter>
</logging>
</common>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
</configuration>
packages.config(可选。项目大时会很有用):
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package >http://www.zhaodll.com/