The log4net.Appender.AsyncAppender class appeared in log4net version 1.2.11 . My following log4net configuration works fine with log4net version 1.2.11:
<appender name="AsyncAppender" type="log4net.Appender.AsyncAppender">
<appender-ref ref="RollingFileAppender" />
<appender-ref ref="ColoredConsoleAppender" />
<appender-ref ref="SmtpAppender" />
</appender>
After upgrading to 1.2.12 or the latest version 1.2.13 , I get the following exception when starting the application:
A first chance exception of type 'System.TypeLoadException' occurred in log4net.dll
Additional information: Could not load type [log4net.Appender.AsyncAppender]. Tried assembly [log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a] and all loaded assemblies
I looked through the assembly of log4net 1.2.11 and found the type log4net.Appender.AsyncAppender, but this type is not in 1.2.12 . > and 1.2.13 . I searched googled and searched log4net in the source repository, but I cannot find the answer what happened to the log4net.Appender.AsyncAppender class in recent versions of log4net.
Can anyone answer this question?
source
share