I have a C# ASP.NET MVC 4 project, which is using Elmah for catching any unhandled exceptions. This works great in most situations.
However I\'ve found that for a
To get a reference to HttpContext.Current you need replace
HttpContext.Current
with
System.Web.HttpContext.Current
This is because Controller class defines a property named HttpContext that is defined as
public HttpContextBase HttpContext { get; }
HttpContext on Controller class returns HttpContextBase which does not have a Current property.
Hence you need to properly resolve the namespace here.