The call to initialize log4net should be log4net.Config.XmlConfigurator.Configure(); in stead of log4net.XmlConfigurator.Configure.