关于mvc5依赖注入 Service could not be resolved.Please check your configuration file and verify this type name 错误问题

最近学习了ASP mvc  依赖注入,于是想自己配置一个依赖注入的,需要学习的可以在网上找找,还是很多的资源的(https://blog.csdn.net/weixin_42077314/article/details/117856387) 大家可以去看看。

本着学了,自己动手试试的心态,就去写了代码,当代码写完了,测试的时候报了一个错误    xxx.Service could not be resolved.Please check your configuration file and verify this type name.

在网上看了很多解决方案都不行,后来我发现我的实现层没有被引入到调用层。只要引入一下即可。因为想着依赖注入,就是为了不去调用实现层,就没有引用,默默的踩了一个坑。

posted @ 2021-11-17 16:30  韩泽瑞  阅读(181)  评论(0)    收藏  举报