logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter K <pkfxtranspare...@gmail.com>
Subject Log4net ADONetAppender
Date Tue, 13 Aug 2013 16:13:02 GMT
Hello,

I recently migrated an application to a new server (Windows 2008 Server R2,
SQL Server 2008 R2, Poweshell) and everything works except I get an error
when trying to log to the database.

log4net:ERROR XmlHierarchyConfigurator: Could not create Appender
[ADONetAppender] of type [log4net.Appender.ADONetAppender]. Reported
error follows.

System.ArgumentNullException: CreateConverterInstance cannot create
instance, converterType is null

Parameter name: converterType

   at log4net.Util.TypeConverters.ConverterRegistry.CreateConverterInstance(Type
converterType)

   at log4net.Util.TypeConverters.ConverterRegistry.GetConverterFromAttribute(Type
destinationType)

   at log4net.Util.TypeConverters.ConverterRegistry.GetConvertFrom(Type
destinationType)

   at log4net.Util.OptionConverter.CanConvertTypeTo(Type sourceType,
Type targetType)

   at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.CreateObjectFromXml(XmlElement
element, Type defaultTargetType, Type typeConstraint)

   at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlElement
element, Object target)

   at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.CreateObjectFromXml(XmlElement
element, Type defaultTargetType, Type typeConstraint)

   at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlElement
element, Object target)

   at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlElement
appenderElement)

log4net:ERROR XmlHierarchyConfigurator: Appender named [ADONetAppender] not
found.

Any help or suggestions would be greatly appreciated.
I have tried Goggling for an answer but have not found anything.

Thanks.

Peter

Mime
View raw message