Getting Object reference not set to an instance while changing size of field in StiMVCDesigner

Stimulsoft Reports.WEB discussion
Post Reply
rutujadengale
Posts: 3
Joined: Mon Feb 01, 2021 10:52 am

Getting Object reference not set to an instance while changing size of field in StiMVCDesigner

Post by rutujadengale »

I am using MVCDesigner in my project

Code: Select all

@Html.Stimulsoft().StiMvcDesigner(new StiMvcDesignerOptions()
{
    Actions = {
    GetReport = "GetReportSnapshot",
    DesignerEvent = "DesignerEvent",
    Exit="ExitDesigner",

},
    Toolbar = { ShowToolbar = true, ShowSetupToolboxButton = true },
    FileMenu = {
            ShowNew=false,
            ShowClose=false,
            ShowExit=true,
            ShowReportSetup=false,
            ShowOpen=false
        },
    PreviewToolbar = {
            ShowSaveButton = true
        },
    Theme = Stimulsoft.Report.Web.StiDesignerTheme.Office2013DarkGrayBlue,
    Server = {
            UseRelativeUrls=true,
            CacheMode=Stimulsoft.Report.Web.StiServerCacheMode.ObjectSession
        },
    Exports = {
            ShowExportDialog = true,
        },
    LocalizationDirectory = "~/Localization/",
    Behavior = { ShowSaveDialog = false },
})
While changing size of dataset or any field it is throwing object reference not set to an instance error. This issue is only occurred on server not on local instance
Attachments
Screenshot_1.png
Screenshot_1.png (294.66 KiB) Viewed 1301 times
Lech Kulikowski
Posts: 7334
Joined: Tue Mar 20, 2018 5:34 am

Re: Getting Object reference not set to an instance while changing size of field in StiMVCDesigner

Post by Lech Kulikowski »

Hello,

Most probably, is used multi-tenancy server and should be implemented caching:
https://www.stimulsoft.com/en/documenta ... ashing.htm

Thank you.
rutujadengale
Posts: 3
Joined: Mon Feb 01, 2021 10:52 am

Re: Getting Object reference not set to an instance while changing size of field in StiMVCDesigner

Post by rutujadengale »

I implemented caching. Can you please tell me will those cached reports deleted automatically from server path?

When RemoveReport() get called?
Lech Kulikowski
Posts: 7334
Joined: Tue Mar 20, 2018 5:34 am

Re: Getting Object reference not set to an instance while changing size of field in StiMVCDesigner

Post by Lech Kulikowski »

Hello,

There are no automatic methods. You should implement it yourself.

Thank you.
Post Reply