Error opening report designer - Value cannot be null. Parameter name: instance

Posted by: cliffe on 29 December 2020, 11:42 am EST

  • Posted 29 December 2020, 11:42 am EST

    Hello,

    I just upgraded a project from AR v11 to v14. It's .NET 4.6.2.

    Now, when I open a (code-based section) report, I get the error:
    Value cannot be null. Parameter name: instance
    Stack Trace is:
    at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes)
    at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component, Boolean rootDesigner)
    at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
    at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
    at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
    at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    --- End of stack trace from previous location where exception was thrown ---
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)


    I've tried rebuilding the project, deleting the bin & obj folders & running devenv.exe /ResetSettings.

    Any suggestions?

    Thanks,
    Cliffe
  • Marked as Answer

    Replied 29 December 2020, 2:05 pm EST

    Hello,

    Could you please try with the latest build of AR14:
    http://cdn.grapecity.com/ActiveReports/AR14/Hotfixes/ActiveReports-v14.2.20743.msi

    Also, Please try after manually adding a reference to GrapeCity.ActiveReports.Serializer NuGet package.
    if the problem still occurs:
    Try to reset VS (https://docs.microsoft.com/en-us/visualstudio/ide/reference/resetsettings-devenv-exe?view=vs-2019)

    Thanks,
    Mohit
  • Replied 30 December 2020, 1:29 am EST

    That did it, thanks!

    There was a Nuget reference to GrapeCity.ActiveReports.Serializer, but it was to a lower version than the rest of the references. I manually updated it to the latest v14 version & it's working now.

    Thanks again,
    Cliffe
Need extra support?

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

Learn More

Forum Channels