Designer error: Value cannot be null. Parameter name: instance

37 posts, 0 answers
  1. Shen
    Shen avatar
    2 posts
    Member since:
    Dec 2012

    Posted 14 May 2015 in reply to Ab Link to this post

    Cool! Glad it helps. You are very welcome!
  2. Prashant Nandha
    Prashant  Nandha avatar
    2 posts
    Member since:
    Jul 2009

    Posted 16 Nov 2015 Link to this post

    We had this problem also, our project is winforms, the solution is change base class from RadForm to Form(.NET Form),Build with error, change it back to RadForm then it works.

     

    may this help you all.

  3. Dickson
    Dickson avatar
    1 posts
    Member since:
    Sep 2015

    Posted 13 Jan 2016 Link to this post

    As of Jan 14th 2016 , this problem still exist. 

     I just upgraded Windows UI from the Telerik Control Panel, and then when I open my project I get an the same error Value cannot be null. Parameter name: instance.

    After a while, I solved it by just selecting the Telerik Upgrade Wizard option in Visual Studio. Deleting the .resx file was not necessary and only led to file not found. 

    I would like to know is this something we have to do every time there is a upgrade? 

  4. Stef
    Admin
    Stef avatar
    3176 posts

    Posted 15 Jan 2016 Link to this post

    Hi Dickson,

    Deleting the RESX file may prevent some issues as they may contain serialized data for data sources and resources used in reports. Still a small change in the report designer will re-create the RESX file.

    In general, on installing new version of Telerik Reporting, you need to run the Upgrade Wizard to update reports (project references, configuration and resx settings).


    I hope this helps.

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. John
    John avatar
    7 posts
    Member since:
    Aug 2013

    Posted 28 Jun 2016 in reply to Stef Link to this post

    Hello Stef,

    This is regarding the Value cannot be null....Designer no longer displays...issue. I manually updated Telerik.Reporting.dll from 7.2.13.1016 to 10.1.16.504 - I have done all things mentioned above except running the Upgrade Wizard - because I am nervous that other aspects of the solution will be impacted and everything else works well. I inherited this project and it is rather large, and last time I ran through the wizard it did not go well and so I rolled everything back. Is it possible to run the UW on just the Reporting project in my solution and leave other Projects alone? I've attached a screen shot of the development machine I have to use. It is VS 2010 and I apologize for the size but that is what I was given to work on.

  6. John
    John avatar
    7 posts
    Member since:
    Aug 2013

    Posted 28 Jun 2016 in reply to Stef Link to this post

    Hello Stef,

    This is regarding the Value cannot be null....Designer no longer displays...issue. I manually updated Telerik.Reporting.dll from 7.2.13.1016 to 10.1.16.504 - I have done all things mentioned above except running the Upgrade Wizard - because I am nervous that other aspects of the solution will be impacted and everything else works well. I inherited this project and it is rather large, and last time I ran through the wizard it did not go well and so I rolled everything back. Is it possible to run the UW on just the Reporting project in my solution and leave other Projects alone? I've attached a screen shot of the development machine I have to use. It is VS 2010 and I apologize for the size but that is what I was given to work on.

  7. Katia
    Admin
    Katia avatar
    335 posts

    Posted 29 Jun 2016 Link to this post

    Hello John,

    You can check the answer in the support ticket 1046794 you opened on the same question.

    For other community members interested in this topic below is the reply from the support ticket:

    "This error occurs if the projects having references to Telerik Reporting are not upgraded. Please check if you run successfully the Upgrade Wizard and restart Visual Studio - Upgrading Telerik Reporting Projects.
    Note, that Upgrade Wizard will only update Telerik Reporting assemblies to the selected version, the project’s config file, aspx/ascx and resource files (resx) with references to the Telerik Reporting assemblies.
    When you start the Wizard there is also an option to choose which project needs to be updated (step 2 of the Wizard Upgrade Settings).

    Also, to be used in the Designer the report must have a default parameterless constructor. In the provided code, the report has only a custom constructor used for passing parameters to report.  In general, we do not recommend to use custom constructors. Instead, you can pass values for parameters via Report Source Parameters collection which is mapped by key to report parameters
    .

    Also, check if all the external assemblies (with custom data object, user functions) are references in the reports project."


    Let's continue our discussion in one of the threads to keep a better track of the exchanged information.

    Regards,
    Katia
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top