Getting below error when trying to register a generic class with a implementation using .net 2.0
- by Gaurav Saxena
Code:
StructureMapConfiguration.BuildInstancesOf().AsSingletons().TheDefaultIsConcreteType();
Error:
StructureMap Exception Code: 190
Can not create a Generic PluginFamily for PluginFamily MIGExcel.Service.IPersistenceService1[[MIGExcel.Model.Contact, WizardModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]. Check that the basic type MIGExcel.Service.IPersistenceService1 is configured as a PluginFamily. These Generic types are configured within StructureMap as PluginFamily's:
MIGExcel.Service.IPersistenceService`1[[MIGExcel.Model.Contact, WizardModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]],MIGExcel.Service;