HttpApplicationState not available in an MVC controller
I'm using MVC2 and VS2010 developing a website and need to use Application State global values. I can set a value like 'Application["hits"]=0;' in Global.asax but when trying to use the same in an MVC controller always get the following error: The name 'Application' does not exist in the current context I have also tried using in the Global.asax in order to define a global variable but it triggers the following error: A namespace cannot directly contain members such as fields or methods I'm looking for a way to define global Application State values that are available within all controllers of