There are some failing tests in the Mono build, they might be related to your issue: http://builds.castleproject.org/viewType.html?buildTypeId=bt81&tab=buildTypeStatusDiv It would be great if you could take a look, you'd have to upgrade to Mono 2.6 first though.
-- Mauricio On Wed, Jul 21, 2010 at 10:14 AM, Stefan Sedich <[email protected]>wrote: > Changing my Registration to: > > container.Register( > AllTypes.FromAssembly(Assembly.GetExecutingAssembly()) > .BasedOn(typeof (IRepository<,>)) > .WithService.Select((t, b) => new List<Type> > { > > t.GetInterfaces().Where(x => !x.IsGenericType).FirstOrDefault() > }) > .Configure(c => c.LifeStyle.Transient) > ); > > And it now works :) guess that is good enough for me. > > On Wed, Jul 21, 2010 at 11:07 PM, Stefan Sedich > <[email protected]>wrote: > >> Hi I am using Windsor on a project and just put it on my Ubuntu server >> running mono 2.4 I get the following error >> >> Can't create component 'homecontroller' as it has dependencies to be >> satisfied. homecontroller is waiting for the following dependencies: >> Services: - ICustomerRepository which was not registered. >> >> My registration is done as follows: >> container.Register( >> AllTypes.FromAssembly(Assembly.GetExecutingAssembly()) >> .BasedOn(typeof(IRepository<,>)) >> .WithService >> .FromInterface(typeof(IRepository<,>)) >> .Configure(c => c.LifeStyle.Transient) >> ); >> Now this works fine on my windows machine, but it does not seem to >> register anything, is there any known compatibility issues with mono before >> I start digging? >> On a side not if I add the registration for the specific component it >> works fine. >> >> Thanks >> >> -- >> Stefan Sedich >> Software Developer >> http://weblogs.asp.net/stefansedich >> > > > > -- > Stefan Sedich > Software Developer > http://weblogs.asp.net/stefansedich > > -- > 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]<castle-project-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > -- 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.
