Failed obtaining configuration for Common.Logging from configuration section 'common/logging'.

3,053 views
Skip to first unread message

Jay Vilalta

unread,
Aug 30, 2012, 5:49:24 PM8/30/12
to quar...@googlegroups.com

I just pulled the latest from master and when I try to run/debug the server project (Quartz.Server.2010.sln) I get this error:

{"Failed obtaining configuration for Common.Logging from configuration section 'common/logging'."}

 

Anybody else seeing this? The app.config file seems to be correct. Tried it on VS2010 and VS2012 and I get the same error.

 

This is what is throwing the exception:

public QuartzServer()

{

     logger = LogManager.GetLogger(GetType());

}

 

Also did a fresh clone from github and no worky either. Any suggestions?

Jay Vilalta

unread,
Aug 30, 2012, 6:27:28 PM8/30/12
to quar...@googlegroups.com

Replacing this section of the app.config

       <common>

              <logging>

                     <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net">

                           <arg key="configType" value="INLINE" />

                     </factoryAdapter>

              </logging>

       </common>

 

With this section fixes it, so apparently it’s something related to the log4netfactory.

 

  <common>

    <logging>

      <factoryAdapter type="Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter, Common.Logging">

        <arg key="level" value="DEBUG" />

        <arg key="showLogName" value="true" />

        <arg key="showDataTime" value="true" />

        <arg key="dateTimeFormat" value="yyyy/MM/dd HH:mm:ss:fff" />

      </factoryAdapter>

    </logging>

  </common>

Marko Lahma

unread,
Aug 31, 2012, 12:44:01 AM8/31/12
to quar...@googlegroups.com
Thanks for reporting this. There was a small issue with app.config
just like you already had figured out. I've fixed
Common.Logging.Log4Net1211 adapter to be referenced from correct
assembly.

-Marko
> --
> You received this message because you are subscribed to the Google Groups
> "Quartz.NET" group.
> To post to this group, send email to quar...@googlegroups.com.
> To unsubscribe from this group, send email to
> quartznet+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/quartznet?hl=en.
Reply all
Reply to author
Forward
0 new messages