の nuget パッケージを更新しましたCommon.Logging.Log4Net
。それ以来、次のエラーが発生し続けます。
タイプ 'Common.Logging.Factory.AbstractCachingLoggerFactoryAdapter' をアセンブリ 'Common.Logging、Version=2.2.0.0、Culture=neutral、PublicKeyToken=af08829b84f0328e' から読み込めませんでした
リンクされている各 nuget パッケージとCommon.Logging
バージョンのリストを次に示します。
- Common.Logging - 2.2.0
- Common.Logging.Core - 2.2.0
- Common.Logging.Log4Net - 2.0.1
私のweb.configには、次のビットがあります。
<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">
に (Common.Logging.Log4net.dll [201] の追加バージョン)
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net201">
そしてそれはうまくいきませんでした。