On every new project: Value cannot be null. Parameter name: instance

4 posts, 1 answers
  1. losol
    losol avatar
    10 posts
    Member since:
    Aug 2004

    Posted 12 Apr 2015 Link to this post

    Trying the trial of the Telerik suite for WinForms in Visual Studi 2013, but any time I try to make new Telerik winforms projects I get the same error message when trying to open the form: 

       To prevent possible data loss before loading the designer, the following errors must be resolved:              1 Error         Why am I seeing this page?             Value cannot be null. Parameter name: instance              Instances of this error (1)   1.   Show 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)     
  2. Answer
    Ralitsa avatar
    175 posts

    Posted 14 Apr 2015 Link to this post

    Hi Ole Kristian,

    Thank you for contacting us. 

    You need to follow these steps to remove the error: 
    1. Open the project 
    2. Add the Telerik.WinControls.UI.Design.dll in the reference 
    3. Save changes and close the project
    4. Open the application and rebuild it. 

    I also attached a video (drag and drop it over your browser to play it) which demonstrates the approach. 

    The error is caused when have installed one version of controls in GAC and the project references another version of the dlls. If you use RadForm or if you want to make changes at design time, you need to add the Telerik.WinControls.UI.Design.dll when working with version different from installed one. 

    I hope this information helps. Should you have further questions, I would be glad to help.


    See What's Next in App Development. Register for TelerikNEXT.

  3. DevCraft banner
  4. na
    na avatar
    1 posts
    Member since:
    Sep 2015

    Posted 27 Nov 2015 in reply to Ralitsa Link to this post

    Hi Ralisa,

     It helped me. Thanks

  5. Indudhar
    Indudhar avatar
    1 posts
    Member since:
    Aug 2015

    Posted 16 Dec 2015 in reply to Ralitsa Link to this post

    Thank You...It worked for me as well
Back to Top