© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
44 replies
hellounlimited

dependency injection net framework

hi all, I'm following a reference on how to use dependency injection in net framework
https://stackoverflow.com/questions/43311099/how-to-create-dependency-injection-for-asp-net-mvc-5

i tried to implement the solution the way they register the services, but when i run the controller i saw that the Interface is not initialized.. even though when i try to debug, the program run through the initialization part like this
services.AddScoped<IDailyConversion, DailyConversion>();
services.AddScoped<IDailyConversion, DailyConversion>();
... does anyone have any idea maybe what could be the issue..?
unknown-1.png
unknown-2.png
Stack Overflow
How to create dependency injection for ASP.NET MVC 5?
Creating Dependency Injection with ASP.NET Core is fairly easy. The documentation explains it very well here and this guy has a killer video to explain it.

However, I want to do the same thing wit...
How to create dependency injection for ASP.NET MVC 5?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,828Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

dependency injection in net framework
C#CC# / help
4y ago
Dependency Injection not working (.NET 8)
C#CC# / help
3y ago
Dependency injection
C#CC# / help
6mo ago
✅ Dependency injection
C#CC# / help
2y ago