I was able to finally fix this thanks to your comments. I needed to load some assemblies (log4net, etc.) into the GAC and then restart. Thanks!
On Wed, Aug 14, 2013 at 2:06 AM, Dominik Psenner <[email protected]> wrote: > 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:[email protected]] > *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 <[email protected]> > 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 <[email protected]>**** > > 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**** > > > > **** > > ** ** > > -- > Dominik Psenner > ## OpenPGP Key Signature ################################# > # Key ID: B469318C # > # Fingerprint: 558641995F7EC2D251354C3A49C7E3D1B469318C # > ##########################################################**** > > ** ** >
