Random NullReferenceExceptions in EndInit()

Posted by: mspost on 27 March 2025, 9:33 am EST

    • Post Options:
    • Link

    Posted 27 March 2025, 9:33 am EST - Updated 27 March 2025, 9:54 am EST

    Since upgrading from v11 to v18, I’m getting random NullReferenceExceptions in the “EndInit()” of the SectionReport.

    . I’ve tried moving things around beforehand, changing the default GDI+ to CrossPlatform, but nothing has helped. It’s essentially unusable. HELP!!

    It also occurs sometimes in the Sections.Add(…) in the designer.

    Here’s the end of the stack trace:

    2025-03-27 07:53:47 System.NullReferenceException: Object reference not set to an instance of an object. (source: System) [ at System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute attributes, Boolean noCustomTypeDesc, Boolean noAttributes)

    at GrapeCity.ActiveReports.SectionReportModel.ControlCollection.SetStyleSheet(StyleSheet value)

    at GrapeCity.ActiveReports.SectionCollection.Insert(Int32 index, Section section)

    at GrapeCity.ActiveReports.SectionCollection.OnReportInitializationCompleted(Object sender,  e)

    at GrapeCity.ActiveReports.SectionReport.System.ComponentModel.ISupportInitialize.EndInit()

  • Posted 30 March 2025, 6:23 pm EST

    I believe this is now solved. It appears I had some “side” DLLs like System.Memory.dll, System.Buffers.dll, etc… that were not consistent across all of my projects and ActiveReports was running with some older DLLs than it should have.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels