I think that it is complaining that you have more than one overload for Component, try using component (lower case).Or check what the arguments for the Component ctor is.
On Fri, Dec 19, 2008 at 12:12 PM, dagda1 <[email protected]> wrote: > > Hi, > > I have the following binsor code which will not compile: > > coreAssemblies = [Assembly.Load("ncontinuity2.core"), Assembly.Load > ("risk.core")] > > for coreAsm in coreAssemblies: > for type in coreAsm: > if typeof(IController).IsAssignableFrom(type): > Component(type.Name.ToLower(), type) > continue if type.Namespace != "ncontinuity2.core.services" and > type.Namespace != "ncontinuity2.core.dataaccess" > continue if type.GetInterfaces().Length == 0 > continue if type.IsInterface > interfaceType = type.GetInterfaces()[0] > component type.FullName, interfaceType, type > > I get the following error: > > BCE0000: Could not compile configuration! Windsor(50,16): BCE0004: > Boo.Lang.Compiler.CompilerError: Ambiguous reference '.ctor' > > Line 50 is this line: > > Component(type.Name.ToLower(), type) > > Can anyone see the problem? > > Thanks > > Paul > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" 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/rhino-tools-dev?hl=en -~----------~----~----~----~------~----~------~--~---
