21 Jun 11:46
Log4Net failed in .net 3.5 Framework
From: CheeHong <cheehongh <at> hotmail.com>
Subject: Log4Net failed in .net 3.5 Framework
Newsgroups: gmane.comp.apache.logging.log4net.devel
Date: 2008-06-21 09:49:19 GMT
Subject: Log4Net failed in .net 3.5 Framework
Newsgroups: gmane.comp.apache.logging.log4net.devel
Date: 2008-06-21 09:49:19 GMT
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:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<Hello>
.....
.....
</Hello>
</appSettings>
</configuration>
It is complaining about <Hello> 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 ?
(Continue reading)
RSS Feed