This error normally occurs when you are trying to access the value of a session variable such as Session["UserID"] and you're not doing that from a webform, usercontrol or a class that inherits from System.Web.UI. Read on..
Read »The name 'Session' does not exist in the current context
http://www.geekpedia.com –


