I have used the below link for the castle windsor dependency injection.I am not able to register the component.
http://www.codeproject.com/Tips/1052382/ASP-NET-MVC-Dependency-Injection-using-Windsor#_comments
public class ServiceInstaller : IWindsorInstaller
{
public void Install(Castle.Windsor.IWindsorContainer container,
Castle.MicroKernel.SubSystems.Configuration.IConfigurationStore store)
{
container.Register(
Component.For<Interfaces.TestInterface>()
.ImplementedBy<Services.TestServices>()
.LifestyleTransient());
}
}
ErrorMessage:
An exception of type 'Castle.MicroKernel.ComponentRegistrationException' occurred in Castle.Windsor.dll but was not handled in user code
Additional information: Component TestForCastleWindsor.Services.TestServices could not be registered. There is already a component with that name. Did you want to modify the existing component instead? If not, make sure you specify a unique name.