I copied the code below into an .ashx The code is from a MSDN example. Except I get an error:
'System.Web.Caching.Cache' is a 'type' but is used like a 'variable' Why am I getting this error?
if (Cache["Key1"] == null) //compile error on this line
Cache.Add("Key1", "Value 1", null, DateTime.Now.AddSeconds(60), Cache.NoSlidingExpiration, CacheItemPriority.High, onRemove);