asp.net mvc 3 - Import Cardinality Mismatch Exception -
i have main app , plugin. main app exporting ihost object , plugin importing ihost object. ran mefx , recognizes both of those. when /causes on plugin gives me importcardinalitymismatchexception. container sees plugin, when call me.container.getexports(of icontroller)() doesn't return anything.
my controller looks this:
class controller implements icontroller ' ... <import()> public property host lazy(of ihost) ' ... end class
i had <importmany()> in plugin. variable importing needed make ienumerable(of lazy(of ihost)) or use lazy(of ihost) if want <import()>
Comments
Post a Comment