Return-Path: Delivered-To: apmail-logging-log4net-dev-archive@www.apache.org Received: (qmail 48805 invoked from network); 21 Jun 2008 20:45:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jun 2008 20:45:06 -0000 Received: (qmail 88392 invoked by uid 500); 21 Jun 2008 20:45:02 -0000 Delivered-To: apmail-logging-log4net-dev-archive@logging.apache.org Received: (qmail 88268 invoked by uid 500); 21 Jun 2008 20:45:00 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 88072 invoked by uid 99); 21 Jun 2008 20:44:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2008 13:44:59 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.142.200.115] (HELO web30502.mail.mud.yahoo.com) (68.142.200.115) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 21 Jun 2008 20:43:33 +0000 Received: (qmail 8700 invoked by uid 60001); 21 Jun 2008 20:42:30 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=ygNli/6m1u40mu9QIZQ5buNwxQhQE3nQM9H/gbtyJZpEzth/qWkewMK/uzoK6cbPbFL2L7calkby1+A/YdSbzJWi65JwbOtJtfIEuzCTZmWBWdwLY5z7BpOR4mxMxW/qVGIPkszC5gWjA/U+J66vP4uifS4Bn9S0vTdV8l5A4Ic=; Received: from [208.101.184.46] by web30502.mail.mud.yahoo.com via HTTP; Sat, 21 Jun 2008 13:42:30 PDT X-Mailer: YahooMailRC/975.45 YahooMailWebService/0.7.199 Date: Sat, 21 Jun 2008 13:42:30 -0700 (PDT) From: Ron Grabowski Subject: Re: Log4Net failed in .net 3.5 Framework To: Log4NET Dev MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <290637.8565.qm@web30502.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org If the exception message mentioned your app.config being malform perhaps you should use a well formed app.config. This is incorrect: ..... ..... AppSettings can only contain nodes: Since new version of the Framework are backwards compatible with previous versions, the latest version of the log4net is compatible with version 3.5 of the Framework. ----- Original Message ---- From: CheeHong To: log4net-dev@logging.apache.org Sent: Saturday, June 21, 2008 5:49:19 AM Subject: Log4Net failed in .net 3.5 Framework Hello, I had jus migrated my VS2003 project to VS2008 Evaluation version. I found out that my log4net is giving me an error in which previously it didn't complain. Function I called is LogManager.GetLogger(name) It gives me "TypeInitializationException was unhandled" error, with the inner exception as "The type initializer for 'log4net.helpers.LogLog' threw an exception". Go in further it mention about my app.config file is having unrecognised element. My app.config has the following structure: ..... ..... It is complaining about being the unrecognized element. But I am able to use log4net in VS2003 without any errors. Could it be due to the incompatibility of using log4net on VS2008 ? Is there a log4net version for .net framework 3.5 ? Can anyone help me on this, any suggestions are welcomed. Thanks in advance. Regards, Chee Hong -- View this message in context: http://www.nabble.com/Log4Net-failed-in-.net-3.5-Framework-tp18042667p18042667.html Sent from the Log4net - Dev mailing list archive at Nabble.com.