Hello,
I am trying to add the following clean up code to the Global.aspx file, and in the clean up code which I got from http://msdn.microsoft.com/en-us/library/ms979200.aspx#scalenethowto08_topic11 we have to declare <%@ Import Namespace="ServiceNameSpace" %> in global.aspx file and add the following code to global.aspx
protected void Session_Start(object sender, EventArgs e)
{
//this is needed so we don't generate a new session with each request
Session["valid"] = true;
}
protected void Session_End(Object sender, EventArgs e)
{
TempDataStore.Remove(Session.SessionID);
}
protected void Application_End(Object sender, EventArgs e)
{
TempDataStore.ClearAll();
}
Now, after I add <%@ Import Namespace="ServiceNameSpace" %> then its throwing the following error:
Go to the complete details ...