Resolution of the dependency failed, type = "Company.Product.Application.MainModule.MenuServices", name = "(none)".
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The current type, Company.Product.Domain.MainModule.Menus.IMenuRepository, is an interface and cannot be constructed. Are you missing a type mapping?
-----------------------------------------------
At the time of the exception, the container was: Resolving Company.Product.Application.MainModule.MenuServices,(none)
Resolving parameter "menuRepository" of constructor Company.Product.Application.MainModule.MenuServices(Company.Product.Domain.MainModule.Menus.IMenuRepository menuRepository)
Resolving Company.Product.Domain.MainModule.Menus.IMenuRepository,(none)
我在调用Contanier.Resolve<T>方法时报了这个错误,谁能解决下?
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The current type, Company.Product.Domain.MainModule.Menus.IMenuRepository, is an interface and cannot be constructed. Are you missing a type mapping?
-----------------------------------------------
At the time of the exception, the container was: Resolving Company.Product.Application.MainModule.MenuServices,(none)
Resolving parameter "menuRepository" of constructor Company.Product.Application.MainModule.MenuServices(Company.Product.Domain.MainModule.Menus.IMenuRepository menuRepository)
Resolving Company.Product.Domain.MainModule.Menus.IMenuRepository,(none)
我在调用Contanier.Resolve<T>方法时报了这个错误,谁能解决下?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货