Edit this page

Value cannot be null. Parameter name instance. when trying to open the Report Designer in Visual Studio 2017

Environment

Product ProgressĀ® TelerikĀ® Reporting

Description

When attempting to bring up the Report Designer in Visual Studio 2017, an error with message 'Value cannot be null. Parameter name: instance' is thrown. The stack trace of the error 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)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

Solution

The error indicates that the project uses a version of Telerik Reporting that is not registered in Visual Studio 2017. This might be due to Telerik Reporting being installed before installation of Visual Studio 2017.

You should re-install Telerik Reporting with support for Visual Studio 2017. You can download MSI file to install Telerik Reporting as described in the How to download Telerik Reporting installer. After downloading the installer, our recommendation is to run the MSI file per Visual Studio edition:

msiexec /i [installer_file_name].msi PRODUCTDIRVS2017ENTERPRISE="C:\Program Files (x86)\Microsoft Visual Studio\2017\[edition]"

In the code above [installer_file_name].msi is the exact name of the installer, and should look like Telerik_Reporting_R1_2018_SP2_DEV.msi. The second parameter [edition] is the Visual Studio edition - Enterprise, Professional, or Community.

Once Telerik Reporting is installed with support for VS2017, you can load the project in Visual Studio.

The VS Report Designer is not fully functional in VS2017 for version of Telerik Reporting prior to R1 2017.
Therefore, our recommendation is to upgrade the project to the newest version (check our Release History) by running the Upgrade Wizard.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy