C#C
C#3y ago
Very Funny

Dependency Injection not working (.NET 8)

I am trying to set up DI for my services but I keep running into the same error, regardless of what I try.

builder.Services.AddScoped<IAdminService, AdminService>();
Is what I keep coming back to in my client side app, but nothing is working.

You can find my code here https://github.com/Ghrafkly/BlazorApp9. You can do a find string on
WEQ
to quickly locate the files that are causing issues
image.png
Was this page helpful?