❔ ✅ Cannot instantiate implementation type
probably i just mess a simple thing, but idk how to fix it ![uwucs](https://cdn.discordapp.com/emojis/1008168890620186664.png)
![uwucs](https://cdn.discordapp.com/emojis/1008168890620186664.png)
![](https://utfs.io/f/2ae81c96-9d80-4f53-92bc-9db0cfde1bb7-1nq2cb.png)
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 ![catsip](https://cdn.discordapp.com/emojis/770049584738205696.png)
![catsip](https://cdn.discordapp.com/emojis/770049584738205696.png)
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.