I set a Application variable in my global.asa.cs with:
protected void Application_Start() { ... // load all application settings
I had this issue in an MVC controller and had to make fully qualified HttpContext for it to work ..
System.Web.HttpContext.Current.Application["VarName"]