Last post Nov 03, 2011 11:32 AM by Qi Wu - MSFT
Oct 28, 2011 03:22 PM|NikosY|LINK
We have an ASP.NET 4.0 application where we create a dataset during runtime and then later store in the Cache
After creating it, we retrieve it from another page. We get back the DataSet object and its contained tables but they are all empty. The debugger shows it fully populated when we store it.
What are we missing?
Oct 30, 2011 02:31 AM|TimoYang|LINK
How did you store data from db into DataSet?
I'm also afraid there's something related with Cache, which doesn't belong to Data forum... Maybe you can also go to
Nov 03, 2011 11:32 AM|Qi Wu - MSFT|LINK
I suppose there may be something wrong with the parameter in the Cache.Insert() method. You have used the parameter "DateTime.Now.AddSeconds(30.00)," in your code. It means when the object expires and it will be removed from the cache. You can try to set
a longer time such as "DateTime.Now.AddMinutes(2),". You can learn more about the Cache.Insert() method in the below link.
Hope it can help you.