Hi Gian Marco, please be more careful, this is the third time you ask this question... I already answered the first time:
http://groups.google.com/group/castle-project-devel/browse_thread/thread/a9517e933cd525c0 http://groups.google.com/group/castle-project-devel/browse_thread/thread/40f46ced6defe13f Cheers, Mauricio On Oct 15, 4:36 pm, Gian Marco Gherardi <[email protected]> wrote: > I'm having a problem trying to instantiate a generic class with Windsor, > configuring it with xml file. > > With this configuration, all works as expected: > > <component id="typewith2generics" > type="SpikeWindsor.TypeWith2Generics`2, SpikeWindsor"> > > <parameters> > <key>${component}</key> > <value>${component}</value> > </parameters> > </component> > > Using simple string as parameters, like in the followind configurartion > > <component id="typewith2generics" > type="SpikeWindsor.TypeWith2Generics`2, SpikeWindsor"> > <parameters> > <key>string value</key> > <value>string value 2</value> > > </parameters> > </component> > > I get the following exception trying to get an instance of the component: > > Key invalid for parameter key. Thus the kernel was unable to override > the service dependency > > I've created a small project on google code to reproduce the behaviour: > > http://code.google.com/p/randomhacking/source/browse/trunk/dotnet/Spi... > > (the dependencies are located > athttp://code.google.com/p/randomhacking/source/browse/trunk/dotnet/<http://code.google.com/p/randomhacking/source/browse/trunk/dotnet/Spi...> > ) > > I'm using Windsor 2.0, but the trunk version shows the same behaviour > > What do you think? > > -- > Gian Marco Gherardi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
