30 Jul 05:33
NUnit + Log4Net Config Error
From: smdenis <sdenis15 <at> hotmail.com>
Subject: NUnit + Log4Net Config Error
Newsgroups: gmane.comp.log.log4net.user
Date: 2008-07-30 03:37:12 GMT
Subject: NUnit + Log4Net Config Error
Newsgroups: gmane.comp.log.log4net.user
Date: 2008-07-30 03:37:12 GMT
When I compile my website using Visual Web Developer, it builds with no
problems. I created the DLL using the aspnet_compiler on the command line
and send that to NUnit. When I try to run my unit tests, I keep getting this
error:
log4net:ERROR XmlConfigurator: Failed to find configuration section
'log4net' in the application's .config file. Check your .config file for the
<log4net> and <configSections> elements. The configuration section should
look like: <section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
Here's snippet from my web.config file:
<configSections>
<!-- Configure Log4Net-->
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
<!-- Configure NHibernate -->
<section name="nhibernate"
type="System.Configuration.NameValueSectionHandler, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<!-- Configure UrlRewriter -->
<section name="rewriter" requirePermission="false"
type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler,
Intelligencia.UrlRewriter"/>
</configSections>
<!-- NHibernate settings-->
<nhibernate configSource="config\nhibernate.xml"/>
(Continue reading)
RSS Feed