It looks like it is failing before it finds the configuration xml. How are you telling log4net where the configuration is? What type of programme are you writing? (console app/windows app/asp.net)
Can you include the whole of the log4net debug output (i.e. all the log4net:* stuff). Thanks, Nicko > -----Original Message----- > From: Pawan Singh [mailto:[EMAIL PROTECTED] > Sent: 25 August 2004 21:14 > To: Log4NET User > Subject: RE: App.config file is causing errors in 1.2.8 > > Even if the config file is empty, I get the same error. Is > this a problem in Beta 8? > > Thanks > Pawan > > <?xml version="1.0" encoding="utf-8" ?> > <configuration> > > <configSections> > <section name="log4net" > type="System.Configuration.IgnoreSectionHandler" /> > </configSections> > > <appSettings> > <!-- To enable internal log4net logging specify > the following appSettings key --> > <add key="log4net.Internal.Debug" value="true"/> > </appSettings> > > <!-- This section contains the log4net configuration settings > --> > <log4net> > </log4net> > </configuration> > > > -----Original Message----- > From: Pawan Singh [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 25, 2004 11:45 AM > To: [email protected] > Subject: App.config file is causing errors in 1.2.8 > > Hi, > > I am using the log4net 1.2 beta 8 for .Net 1.1. The example > config file in the distribution for vb.net does not work - so > I took elements from the Java version. Now all the > configuration stuff is read, but DOMConfigurator prints an error. > log4net:ERROR DOMConfigurator: ConfigureFromXML called with > null 'element' parameter log4net:ERROR DOMConfigurator: > ConfigureFromXML called with null 'element' parameter > > Here is my simple app.config file: > > <?xml version="1.0" encoding="utf-8" ?> > <configuration> > > <configSections> > <section name="log4net" > type="System.Configuration.IgnoreSectionHandler" /> > </configSections> > > <appSettings> > <!-- To enable internal log4net logging specify > the following appSettings key --> > <add key="log4net.Internal.Debug" value="true"/> > </appSettings> > > <!-- This section contains the log4net configuration settings > --> > <log4net> > > <appender name="ConsoleAppender" > type="log4net.Appender.ConsoleAppender"> > <layout type="log4net.Layout.PatternLayout"> > <param name="ConversionPattern" > value="%d [%t] %-5p %c [%x] <%X{auth}> - %m%n" /> > </layout> > </appender> > > <!-- Setup the root category, add the appenders > and set the default level --> > <root> > <level value="ALL" /> > <appender-ref ref="ConsoleAppender" /> > <!-- <appender-ref ref="A" /> --> > </root> > > <!-- Specify the level for some specific categories --> > <logger name="WindowsApplication1.Form1"> > <!-- <appender-ref ref="B" /> --> > <level value="ALL" /> > <appender-ref ref="ConsoleAppender" /> > </logger> > > > </log4net> > </configuration> > > > > > >
