logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Psenner" <dpsen...@gmail.com>
Subject AW: Log4net ADONetAppender
Date Wed, 14 Aug 2013 06:06:30 GMT
Hard to tell. It should be some type (i.e. class) that is mentioned in the
log4net configuration (XML) within an appender.

 

Von: Peter K [mailto:pkfxtransparency@gmail.com] 
Gesendet: Dienstag, 13. August 2013 22:33
An: Log4NET User
Betreff: Re: Log4net ADONetAppender

 

Thanks for the response.

It is much appreciated.

I went and checked and I did not have all of the same Powershell modules
migrated to the new server.

I migrated them over and still get the same error.

 

What types of library should I be checking that I have migrated over?

Thanks again for your help.

 

Peter

 

On Tue, Aug 13, 2013 at 2:45 PM, Dominik Psenner <dpsenner@gmail.com
<mailto:dpsenner@gmail.com> > wrote:

Hi

 

The message indicates that something cannot be instantiated. Maybe you have
misspelled some class name or you have forgot to copy over a library?

 

Cheers

 

2013/8/13 Peter K <pkfxtransparency@gmail.com
<mailto:pkfxtransparency@gmail.com> >

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(Xm
lElement element, Type defaultTargetType, Type typeConstraint)
   at
log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlElemen
t element, Object target)
 
   at
log4net.Repository.Hierarchy.XmlHierarchyConfigurator.CreateObjectFromXml(Xm
lElement element, Type defaultTargetType, Type typeConstraint)
 
   at
log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlElemen
t element, Object target)
   at
log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlEleme
nt 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





 

-- 
Dominik Psenner
## OpenPGP Key Signature #################################
# Key ID: B469318C                                       #
# Fingerprint: 558641995F7EC2D251354C3A49C7E3D1B469318C  #
##########################################################

 


Mime
View raw message