您的位置:首页 > 编程语言 > C#

Autofuc None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructor

2017-03-17 16:02 736 查看
最近项目中使用Autofuc实现依赖注入时出现错误:


None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'PoyaYun.Controllers.MainController' can be invoked with the available services and parameters:

Cannot resolve parameter 'PoyaYun.IBLL.IAnalysisBll bll' of constructor 'Void .ctor(PoyaYun.IBLL.IAnalysisBll)'.

经查找资料原来是接口的实现忘记继承接口导致的。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  c# autofuc
相关文章推荐