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)
看错误提示,好像是说你没有为IOperateLogService指定实现类