Lỗi Autofac.Core.Activators.Reflection.DefaultConstructorFinder Web API

Cả nhà giúp mình lỗi này với ạ
"None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'DataCenter.Service.usersService' can be invoked with the available services and parameters:\r\nCannot resolve parameter 'DataCenter.Data.Responsitories.IusersRepository usersRepository' of constructor 'Void .ctor(DataCenter.Data.Responsitories.IusersRepository, DataCenter.Data.Infrastructure.IUnitOfWork)'."

up, :frowning: ko ai tra loi

1 Like

Thì không có hàm dựng nào nhận những tham số đó thôi.

Xem kiểu của các tham số có đúng với kiểu tham số hàm dựng bạn cần.

1 Like
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?