Images of report are not displaying and not saving as PDF
Posted: Fri Oct 04, 2019 10:05 am
I have written the following code as .cshtml using Visual Studio from the beginning of using Stimulsoft. In old versions i was using CacheMode=ObjectSession. Ιn version 2019.2.1 there was the error 'Object reference not set to an instance of an object' at Stimulsoft.Report.Web.StiCacheHelper.SaveObject(Object obj, String guid, StiServerCacheMode cacheMode, TimeSpan timeout, CacheItemPriority priority). So, i changed it as CacheMode=StringCache and I solved the problem.
Now i am using the last version 2019.3.6.
In preview, when CacheMode=StringCache, then if i have more than one pages and images on each page, the images of 1st page are displaying, but when i select next pages, the images are not displaying. I am returning to 1st page and images of 1st page have been lost!!!
Also, when i save as PDF, my images are not displaying.
When I changed again CacheMode=ObjectSession, then all images are displaying but i have again the same error 'Object reference not set to an instance of an object' at Stimulsoft.Report.Web.StiCacheHelper.SaveObject(Object obj, String guid, StiServerCacheMode cacheMode, TimeSpan timeout, CacheItemPriority priority).
I need immediately a solution. i can't send you a sample because my reports are built with code dynamically.
@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions()
{
Server =
{
RequestTimeout = 300, // 5 minutes
CacheTimeout = 3, //10, // 10 MINUTES
CacheMode = Stimulsoft.Report.Web.StiServerCacheMode.ObjectSession, // old versions
CacheMode = Stimulsoft.Report.Web.StiServerCacheMode.StringCache, // version 2019.2.1
},
})
Now i am using the last version 2019.3.6.
In preview, when CacheMode=StringCache, then if i have more than one pages and images on each page, the images of 1st page are displaying, but when i select next pages, the images are not displaying. I am returning to 1st page and images of 1st page have been lost!!!
Also, when i save as PDF, my images are not displaying.
When I changed again CacheMode=ObjectSession, then all images are displaying but i have again the same error 'Object reference not set to an instance of an object' at Stimulsoft.Report.Web.StiCacheHelper.SaveObject(Object obj, String guid, StiServerCacheMode cacheMode, TimeSpan timeout, CacheItemPriority priority).
I need immediately a solution. i can't send you a sample because my reports are built with code dynamically.
@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions()
{
Server =
{
RequestTimeout = 300, // 5 minutes
CacheTimeout = 3, //10, // 10 MINUTES
CacheMode = Stimulsoft.Report.Web.StiServerCacheMode.ObjectSession, // old versions
CacheMode = Stimulsoft.Report.Web.StiServerCacheMode.StringCache, // version 2019.2.1
},
})