Page 1 of 1

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

Posted: Mon Feb 01, 2021 11:10 am
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

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

Posted: Mon Feb 01, 2021 12:19 pm
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.

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

Posted: Tue Feb 02, 2021 10:48 am
by rutujadengale
Thanks

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

Posted: Tue Feb 02, 2021 11:30 am
by rutujadengale
I implemented caching. Can you please tell me will those cached reports deleted automatically from server path?

When RemoveReport() get called?

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

Posted: Wed Feb 03, 2021 10:14 am
by Lech Kulikowski
Hello,

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

Thank you.