John... thank you!

I had a reference to it in my main class library, but for some reason
it wasn't copying that particular dll to my wpf application

I was under the impression that if  you reference a project, it will
in term copy across all of it's dependencies when you build

Chris



On Aug 4, 10:37 pm, John Simons <[email protected]> wrote:
> Are you also referencing
> Castle.Services.Logging.Log4netIntegration.dll ?
>
> On Aug 5, 2:29 am, Hainesy <[email protected]> wrote:
>
>
>
> > Hi
>
> > I'm getting an exception when trying to add log4net to my container in
> > windows apps - but it works fine in a website.
>
> > Assembly versions:
>
> > Castle.Windsor v 2.0.0.0
> > Castle.Facilities.Logging v 1.0.3.0
> > log4net v 1.2.10.0
>
> > My code:
>
> > container.AddFacility("logging", new LoggingFacility
> > (LoggerImplementation.Log4net));
>
> > The exception:
>
> > Castle.MicroKernel.SubSystems.Conversion.ConverterException was
> > unhandled
> >   Message="Could not convert from
> > 'Castle.Services.Logging.Log4netIntegration.Log4netFactory,Castle.Services. 
> > Logging.Log4netIntegration,Version=1.0.3.0,
> > Culture=neutral,PublicKeyToken=407dd0808d44fbdc' to System.Type."
> >   Source="Castle.MicroKernel"
> >   StackTrace:
> >        at
> > Castle.MicroKernel.SubSystems.Conversion.TypeNameConverter.PerformConversio 
> > n
> > (String value, Type targetType)
> >        at
> > Castle.MicroKernel.SubSystems.Conversion.DefaultConversionManager.PerformCo 
> > nversion
> > (String value, Type targetType)
> >        at
> > Castle.Facilities.Logging.LoggingFacility.GetLoggingFactoryType(String
> > customType)
> >        at
> > Castle.Facilities.Logging.LoggingFacility.CreateProperLoggerFactory
> > (String customType, String configFile)
> >        at
> > Castle.Facilities.Logging.LoggingFacility.ReadConfigurationAndCreateLoggerF 
> > actory
> > ()
> >        at Castle.Facilities.Logging.LoggingFacility.Init()
> >        at Castle.MicroKernel.Facilities.AbstractFacility.Init(IKernel
> > kernel, IConfiguration facilityConfig)
> >        at Castle.MicroKernel.DefaultKernel.AddFacility(String key,
> > IFacility facility)
> >        at Castle.Windsor.WindsorContainer.AddFacility(String key,
> > IFacility facility)
>
> > Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to