Tag: dependency-injection

62 votes
2 answers
1.4K views
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor'

I started to convert my asp.net core RC1 project to RC2 and faced with problem that now IHttpContextAccessordo

avatar
Kisha
0 1 0 9
asked 07 September, 2021
61 votes
23 answers
2.9K views
ASP.NET Core Dependency Injection error: Unable to resolve service for type while attempting to activate

I created an .NET Core MVC application and use Dependency Injection and Repository Pattern to inject a reposit

avatar
Trudy
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
1.3K views
Resolving instances with ASP.NET Core DI from within ConfigureServices

How do I manually resolve a type using the ASP.NET Core MVC built-in dependency injection framework? Setting

avatar
Shanita
0 1 0 9
asked 07 September, 2021
66 votes
30 answers
2.8K views
AngularJS: Service vs provider vs factory

What are the differences between a Service, Provider and Factory in AngularJS?

avatar
Chelsea
0 1 0 9
asked 07 September, 2021