The scenario: I'm using Telerik Report Viewer in my web application to show large reports (about 5000 records from my DB, resulting in a 80 page document to display). Everything was working just fine... but on this terrible day my app starts to throw a "Out of Memory" exception.
I realize that Telerik Report was caching all data and only releasing it after a long time(15 minutes or more). The cache for one report consume at least 300mb!
The things is... I want to empty this cached data AND release my memory. The memory consumpion persist even after I clear the cache using the following code:
HttpRuntime.Close()
//or
foreach (DictionaryEntry item in HttpContext.Current.Cache) {
HttpContext.Current.Cache.Remove((string)item.Key);
}
Any ideias? Thanks in advance.