Jeez louise, I'm trying to retro fit a plague ridden legacy app with SM and running into all sorts of strangeness. So I apologize for all the strange questions.
so I have this code
var whatDoIHave = ObjectFactory.Container.WhatDoIHave();
var validator = ObjectFactory.GetInstance<IValidator<ProfileActivityElement>>();
the what do I have has this
IValidator`1<ProfileActivityElement> (IValidator`1<ProfileActivityElement>)
Scoped as: Transient
4b774bc1-b46e-4fc1-95f4-348bb3786dc8
Configured Instance of HSTM.HLC.BusinessLogic.Validators.ProfileActivityElememntValidator, HSTM.HLC.BusinessLogic, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3
29c5ff3e-73bd-44bb-9fc8-5a81fa640499 Configured Instance of HSTM.HLC.BusinessLogic.Validators.ProfileActivityElememntValidator, HSTM.HLC.BusinessLogic, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3
the validator gets an error like this
StructureMap Exception Code: 202
No Default Instance defined for PluginFamily HSTM.HLC.BusinessLogic.IValidator`1[[HSTM.HLC.BusinessLogic.HCC.ProfileActivityElement, HSTM.HLC.BusinessLogic, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3]], HSTM.HLC.BusinessLogic, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3
That's the full error, no inner errors. Perhaps I'm just overlooking some syntax error.
Thanks for the help,
Raif