Hey guys, I am having trouble with Castle windsors IoC container when trying to retrieve a generic type. I have added a component using generic notation without a type argumet i.e:
<IoC>
<components>
<component
id="NHibernateRepository"
service="MobilePrototype.Domain.Interfaces.IRepository`1, MobilePrototype.Domain"
type="MobilePrototype.Data.NHibernateProvider.Repository`1, MobilePrototype.Data" />
</components>
</IoC>
This component is almost identical notation to that used in castles documentation here (Registering a generic type without arguments). The issue I have is that when the container tries to resolve an instance I get the following error:
System.MissingMethodException: Method not found: 'Void Castle.Core.Configuration.ConfigurationCollection.AddRange(Castle.Core.Configuration.ConfigurationCollection)'.
Any ideas?
EDIT:
For anyone having this issue, the problem I had is that I had a reference to Castle.DynamicProxy2 and not Castle.DynamicProxy