Can't access to HttpContext.Current
asp.net, asp.net-mvc, asp.net-mvc-4, c#, razor
Solution
Have you included the `System.Web` assembly in the application?
using System.Web;
If not, try specifying the `System.Web` namespace, for example:
System.Web.HttpContext.Current
Problem
I can't access to HttpContext.Current on my project MVC4 with C#4.5 I've added my reference to System.Web in my project and added the using instruction on my controller page... But I can access currentHandler only... ``` var context = HttpContext.CurrentHandler; //Current ``` Is `HttpContext.Current` deprecated on C#4.5 ? I've looked this help page : http://msdn.microsoft.com/en-us/library/system.web.httpcontext.aspx