Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Value cannot be null. Parameter name: instance" error when trying to open telerik report

In my solution I have telerik reports and when trying to open them in Visual Studio 2010 designer, I am getting this error:

Value cannot be null. Parameter name: instance

Call Stack 

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)  

When I run the solution, they are appearing and they are good. So, the only problem is the designer and this error.

Thanks in advance.

like image 596
Ferid Š. Sejdović Avatar asked Apr 24 '14 08:04

Ferid Š. Sejdović


3 Answers

I re-installed Telerik Reporting component, removed and added again DLLs and now is working fine.

like image 99
Ferid Š. Sejdović Avatar answered Nov 17 '22 10:11

Ferid Š. Sejdović


I got this error because the telerik library I had downloaded from the Progress control panel was the wrong version. Here's how I corrected the situation.

If you don't have the Progress Control Panel, see here: https://docs.telerik.com/devtools/wpf/getting-started/installation/installation-installing-from-progress-control-panel

I was working with the Telerik Reporting library and it was an older version because my company hasn't updated the license but the Progress Control Panel will download the latest by default.

To see which version you need, right click on your reference and click Properties. enter image description here

The version I needed was 10.2.16.1025.

enter image description here

Now in Progress Control Panel, click on the library.

enter image description here

Now click "View All Versions"

enter image description here

This will show which version(s) are installed. Check "REMOVE" for a version you don't want and "INSTALL" for the version you need. Then click "CLOSE".

enter image description here

Then click "PROCEED" on the bottom right.

enter image description here

Last, I uncheck "Local Demos" unless you want them. Check "Yes, I accept..." and click "PROCEED". This will get the install/uninstall processes going.

enter image description here

like image 27
Tony L. Avatar answered Nov 17 '22 08:11

Tony L.


close visual studio and install "Telerik_Reporting.msi". then open visual studio and your project

like image 2
A.Bahrami Avatar answered Nov 17 '22 08:11

A.Bahrami