In my Application_Start method in the Global.asax I am setting the Application State to a string. When I try and access it my controller I can't. I thought I would access the Application State the same way as I do the Session State by saying:
string myvar = Application["MyString"];
When I try that, Application doesn't show up in Intellisense and I get the message: 'The name 'Application' does not exist in the current context'.
Here is a partial listing of my Application_Start method:
public class MvcApplication : System.Web.HttpApplication
protected void Application_Start()
Application["MyString"] = "some value";
Can someone please tell me what I am doing wrong?