Error reading configuration context at reloading a assembly at startup

213 views
Skip to first unread message

Ruald

unread,
Jun 18, 2008, 3:24:22 AM6/18/08
to gallio-dev
I was running the Icarus GUI Test Runner with a Test assembly. That
assembly has some app.config behind and a 'Config' directory with
configs likes Log4net, NHibernate, etc. This works perfect and there
was no problems.

When I close the program and start it again, Gallio will reload the
last assembly. I know it's a option to disable reloading at startup.
When I execute the test, I get some initialisation errors with finding
the config contexts. When I remove the assembly form the GUI en add
it again, it work perfect again.

The error I receive is:
Initialize
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.TypeInitializationException: The type initializer for
'Spring.Dao.Support.DaoSupport' threw an exception. --->
Common.Logging.ConfigurationException: Unable to create instance of
type Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter. Possible
explanation is lack of zero arg and single arg NameValueCollection
constructors ---> System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. --->
Common.Logging.ConfigurationException: log4net configuration file 'C:
\Program Files\Gallio\bin/Config/Log4Net.config' does not exists at
Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter..ctor(NameValueCollection
properties) --- End of inner exception stack trace --- at
Reply all
Reply to author
Forward
0 new messages