StructureMap Exception Code: 202 No Default Instance defined for PluginFamily

前端 未结 8 1237
-上瘾入骨i
-上瘾入骨i 2020-12-20 11:05

I am new to StructureMap. I have downloaded and am using version 2.6.1.0. I keep getting the below error:

StructureMap Exception Code: 202 No Def

8条回答
  •  太阳男子
    2020-12-20 11:41

    I was seeing the same error. In my case, I had a typo in the implementation name, so the interface and implementation names did not match.

    public class FooTypo : IFoo
    

    Where I should have had:

    public class Foo : IFoo
    

提交回复
热议问题