© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
37 replies
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>();
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
WEQ
to quickly locate the files that are causing issues
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ SignalR .NET 7 API Dependency injection not working
C
C# / help
3y ago
dependency injection net framework
C
C# / help
4y ago
dependency injection in net framework
C
C# / help
4y ago
Dependency injection
C
C# / help
6mo ago