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)'.
经查找资料原来是接口的实现忘记继承接口导致的。
相关文章推荐
- None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'
- 可以使用可用的服务和参数调用在“eWorld.WCFImplement.ServiceImplement.ImageArchiveService”类型上使用“Autofac.Core.Activators.Reflection.DefaultConstructorFinder”找到的构造函数: 无法解析参数'eWorld.WCFBLL.ImageArchive.IDocumentOperation
- C++对象模型(一):The Semantics of Constructors The Default Constructor (默认构造函数什么时候会被创建出来)
- C++对象模型(一):The Semantics of Constructors The Default Constructor (默认构造函数什么时候会被创建出来)
- Error:A problem was found with the configuration of task ':app:packageDebug'
- How to change the default run level of a RedHat 9.0 or Fedora Core Linux system
- No matching provisioning profiles found: None of the valid provisioning profiles include the device
- 安装SP2后,提示"'Preserving/Deleting template record with size","The expected version of the product was not found on the “错误
- C++构造函数语意学 - Constructor(The Semantics of Constructors)
- Android A problem was found with the configuration of task ':app:packageRelease'
- DataStage job monitor fails with out of memory error in the javacore file
- Error:A problem was found with the configuration of task ':app:packageDebug' 问题解决
- .Net Remoting 排错笔记:The constructor to deserialize an object of type 'xxx.xxxx.xxxxx' was not found.
- Error:(26, 34) No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/b
- Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- CSV ----- To improve the performance of Excel Output with reflection (Part 1)
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/ history_child_
- Error: No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/p
- android studio异常Error:A problem was found with the configuration of task ':app:zipalignDebug'.
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/tx_search_friend