© 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
•
35 replies
velreine
❔ Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor'
I
'm having this exception thrown at run
-time even though
builder.Services.AddHttpContextAccessor()
builder.Services.AddHttpContextAccessor()
was invoked
, anyone who knows what might be at fault here
?
LMK if more details are needed
.
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
❔ Unable to resolve service type for IHttpClientFactory
C
C# / help
3y ago
✅ Unable to create migration - 'Unable to resolve service for type 'DbContextOptions'
C
C# / help
2y ago
❔ Webhook Package for Microsoft.AspNetCore?
C
C# / help
3y ago