Last post Jun 05, 2016 03:23 PM by George Parissis
Jun 04, 2016 04:56 AM|George Parissis|LINK
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?
Jun 05, 2016 03:23 PM|George Parissis|LINK
Figure out the solution to my problem.
After the upgrade to RC2 we need manually to register the HttpContextAccessor. I did a mistake and registered this service as Transient. Switched to Singleton and it worked.