❔ ✅ Cannot instantiate implementation type
probably i just mess a simple thing, but idk how to fix it
7 Replies
i just started a simple aspnetcore api
Have you added an
IUserRepository
to DI?
Something like builder.Services.AddScoped<IUserRepository, UserRepository>();
can you show your Program.cs?damn
i find the error
instead of
i was using
IUserRepository>UserRepository
lol
yeah that'll do it
thanks a lot bro
np
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.