Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Net Core RC2 IHttpContextAccessor HttpContext is always null

$
0
0

After my upgrade to RC2 I have this problem.

I am trying to access the current HttpContext from a custom class and although I can see that IHttpContextAccessor is injected properly the property HttpContext is null.

How can I solve this problem? Where should I look?

Thank you?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>