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.
I re-installed Telerik Reporting component, removed and added again DLLs and now is working fine.
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.
The version I needed was 10.2.16.1025.
Now in Progress Control Panel, click on the library.
Now click "View All Versions"
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".
Then click "PROCEED" on the bottom right.
Last, I uncheck "Local Demos" unless you want them. Check "Yes, I accept..." and click "PROCEED". This will get the install/uninstall processes going.
close visual studio and install "Telerik_Reporting.msi". then open visual studio and your project
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With