首页新闻找找看学习计划

C# Unity依赖注入

0
[待解决问题]

VS2015 MVC4中使用Unity依赖注入报以下错误:
“Microsoft.Practices.Unity.ResolutionFailedException”类型的异常在 Microsoft.Practices.Unity.dll 中发生,但未在用户代码中进行处理

其他信息: Resolution of the dependency failed, type = "QMS_Interface.Login.IOperateLogService", name = "(none)".

Exception occurred while: while resolving.

Exception is: InvalidOperationException - The current type, QMS_Interface.Login.IOperateLogService, is an interface and cannot be constructed. Are you missing a type mapping?


At the time of the exception, the container was:

Resolving QMS_Interface.Login.IOperateLogService,(none)

嬢嬢嬢嬢的主页 嬢嬢嬢嬢 | 初学一级 | 园豆:38
提问于:2019-07-19 14:17
< >
分享
所有回答(1)
0

看错误提示,好像是说你没有为IOperateLogService指定实现类

会长 | 园豆:4120 (老鸟四级) | 2019-07-19 14:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册