Question

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.

Was it helpful?

Solution

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

OTHER TIPS

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

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

  1. You need Just delete Telerik references.
  2. Close the corrupted form.
  3. Add new windows form then add a Telerik component to the new form(ex: telerikButton).
  4. Open the corrupted form, wait for a second then you will find everything goes back to normal.

I got this error while trying to open the SQL unit test designer (non telerik related).

My 'solution' was to recreate the test and copy the contents over.

Change the framework version of the project. I fixed the error with this way.

I had the same problem with ActiveReports with a C# module. It had worked fine in VB 2017.

Reinstalling the latest AR update solved the problem for the C# version

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top