Latest update causing exception

4 posts, 0 answers
  1. Martin
    Martin avatar
    17 posts
    Member since:
    Jul 2011

    Posted 12 Apr 2013 Link to this post

    Hi!
    I just upgraded to the latest Winforms controls, and now my project is no longer running. I am getting the following exception;

    An error occurred creating the form. See Exception.InnerException for details.  
    The error is: Unable to cast object of type 'Telerik.WinControls.UI.RibbonBar.RibbonBarCaptionFillPrimitive' to type 'Telerik.WinControls.UI.RadQuickAccessToolBar'.

    VS2010 says no source available, so I have no idea on how to fix this... Please help!

    Martin
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 12 Apr 2013 Link to this post

    Hello,

    In one of our previous releases we changed the internal element structure of RadRibbonBar. This caused issues in old projects where different properties of RadRibbonBar are serialized at design time. 

    To overcome the exception you experience, please make sure that you remove all the serialized code which accesses the ribbon bar children from your designer file and introduce the desired settings either in code or redo them in design time. The error is raised because we have changed the element structure of RadRibbonBar, and the old code is trying to access elements, which are no longer there.

    If you cannot manage to overcome the exception, please send us your project. We will investigate and address the issue. Thank you in advance.
     
    Greetings,
    Stefan
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Martin
    Martin avatar
    17 posts
    Member since:
    Jul 2011

    Posted 12 Apr 2013 Link to this post

    Ok, I managed to circumvent this exception by removing the image from the "backstage button" in the properties window. Perhaps this altered the code in the designer enough so that it functions properly now.
  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 12 Apr 2013 Link to this post

    Hello Martin,

    I am glad to hear that you have resolved this case. Let us know if you have any other questions.
     

    Kind regards,
    Stefan
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top