I am trying to cache some data and pass it to an ASHX handler page to print some barcodes with a 3rd party tool.
I am able to create the cache in my aspx page and pass the data to it, but when I try to retrieve it in the ashx page, I get a "Reference to a non-shared member requires an object reference.
Here is my code in the aspx
Cache.Insert("DataGridCache", DS, Nothing, DateTime.Now.AddMinutes(10), TimeSpan.Zero)
and my code in the ashx
Dim DataGridCache As DataSet = CType(Cache.Get("DataGridCache"), DataSet)