Are those assemblies all from the build server? http://builds.castleproject.org/

Also check if you have Castle RC3 in your GAC. If so, remove it.

On Aug 4, 1:29 pm, 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