类型Castle.Facilities.FactorySupport.FactorySupportFacility未实现Castle.MicroKernel.IFacility接口

时间:2012-04-18 16:43:06

标签: castle-windsor

我已将我的解决方案从城堡版本1.0更新到版本3.0,现在我收到此错误:

  

键入Castle.Facilities.FactorySupport.FactorySupportFacility不会   实现Castle.MicroKernel.IFacility接口。

在我的配置文件中我有:

  <facilities>
    <facility
     id="factory.support"     
     type="Castle.Facilities.FactorySupport.FactorySupportFacility, Castle.MicroKernel"
    />
  </facilities>

2 个答案:

答案 0 :(得分:2)

你的装配错了。这很有效。

  <facilities>
    <facility
     id="factory.support"     
     type="Castle.Facilities.FactorySupport.FactorySupportFacility, Castle.Windsor"
    />
  </facilities>

答案 1 :(得分:1)

从Castle的v3开始,FactorySupportFacility存在于Castle.Windsor之外的自己的程序集中。所以要配置它你可以使用     

<facility
 id="factory.support"     
 type="Castle.Facilities.FactorySupport.FactorySupportFacility, Castle.Facilities.FactorySupport"
/>