I've seen several questions and answers about this issue, but couldn't find one that enabled me to solve the problem.
The project is a C# .NET project.
The error i'm getting is:
"InvalidOperationException - The type MyTypeName has multiple constructors of length 2. Unable to disambiguate."
Granted, there are several constructors that accept 2 parameters, but there are several similar classes in the same project, and they all have these constructors (same prototype - with a different name of course).
The new class i've added has constructors with the same signatures as the other classes, but for some reason, when resolving this class, I get the above error.
I always manage to configure unity correctly and debug it, but this time i'm at a loss.
Where should i look?
Edit:
Here are the class constructors. the whole class is pretty big, so i'm trying to post only the relevant part:
public CategorizationServiceProxy() {
}
public CategorizationServiceProxy(string endpointConfigurationName) :
base(endpointConfigurationName) {
}
public CategorizationServiceProxy(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public CategorizationServiceProxy(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public CategorizationServiceProxy(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress) {
}
Another Edit:
And here is the unity configuration for the above class. There are 9 other classes, all configured exactly the same way, and they all instantiate correctly.
<register
type="SA.Contracts.CategorizationService.ICategorizationService, SA.Contracts, PublicKeyToken=5021cc32571ca775"
mapTo="SA.Service.Categorization.CategorizationServiceImpl, SA.Service.Categorization, PublicKeyToken=5021cc32571ca775" >
<lifetime type="singleton" />
</register>
Thanks.