HttpContext.Current not Resolving in MVC 4 Project

Try prefixing it with System.Web.

If I try System.Web.HttpContext.Current, then Current is there, but if I try HttpContext.Current, then it doesn’t recognize ‘Current’. I do have System.Web in my using statements, but I still seem to be required to specify it in order to get access to ‘Current’.

@Chris’ answer points and explains the underlying reason.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)