I have installed Kentico 12 Dancing goat site and on top of that I want to create Wepapi2 controller for Angular front end. I am always getting null for HttpContext object even when I am using "AccountController" of "Dancing Goat" controller. Appreciate for your help.
I'm assuming you're trying to access session data in a Web API controller. Sessions are not intended to be accessed there. That said, this information gives you a workaround and also discusses why you should not use session data with Web API.
Please, sign in to be able to submit a new answer.