Getting below error when trying to register a generic class with a implementation using .net 2.0

Posted by Gaurav Saxena on Stack Overflow See other posts from Stack Overflow or by Gaurav Saxena
Published on 2011-01-07T13:38:29Z Indexed on 2011/01/07 13:54 UTC
Read the original article Hit count: 244

Filed under:
|

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;

© Stack Overflow or respective owner

Related posts about c#

Related posts about structuremap