방금 Common.Logging.Log4Net
에 대한 내 너트 패키지를 업데이트했습니다. 2.2.0 'Common.Logging.Factory.AbstractCachingLoggerFactoryAdapter'유형을로드 할 수 없습니다.
- Common.Logging :
Common.Logging
뿐만 아니라 버전에 연결되어 각 nuget 패키지의 목록은 다음Could not load type 'Common.Logging.Factory.AbstractCachingLoggerFactoryAdapter' from assembly 'Common.Logging, Version=2.2.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e'
되어 그 이후로 나는 다음과 같은 오류가 계속 Common.Logging.Core - 2.2.0
- Common.Logging.Log4Net - 내가 가진 내 Web.config의에서 2.0.1
다음 비트 :
<configuration>
<configSections>
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
</configSections>
//...//
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
//...//
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net">
<arg key="configType" value="FILE-WATCH" />
<arg key="configFile" value="~/log4net.config" />
</factoryAdapter>
</logging>
</common>
</configuration>
어떻게 해결할 수 있습니까?
나는 변화 시도했다 :
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net">
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net201">
합니다 (Common.Logging.Log4net.dll [201]의 추가 버전)에 그 작동하지 않았다.
이 오류는'LogManager.GetCurrentClassLogger()'를 호출 할 때 발생합니다. – Mark