More than one export was found that matches the constraint
When using MEF, you might one day find a class that is marked as export is not exported. Having a look at the trace window in VS, there is a line as:
More than one export was found that matches the constraint:
ContractName XXXX
RequiredTypeIdentity XXXX
Resulting in: Cannot set import ‘YYYY..ctor (Parameter=”operand1″, ContractName=”XXXX”)’ on part ‘YYYY’.
Read the rest of this entry »
