This is a migrated thread and some comments may be shown as answers.

Latest update causing exception

3 Answers 78 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 12 Apr 2013, 09:14 AM
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

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 12 Apr 2013, 09:36 AM
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.
0
Martin
Top achievements
Rank 1
answered on 12 Apr 2013, 10:33 AM
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.
0
Stefan
Telerik team
answered on 12 Apr 2013, 10:34 AM
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.
Tags
RibbonBar
Asked by
Martin
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Martin
Top achievements
Rank 1
Share this question
or