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

upgrade problems

4 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
jc mag
Top achievements
Rank 1
jc mag asked on 06 Dec 2009, 02:42 PM
I've migrated a winform project to the 2009.3.9.1203 version of your controls and I have several issues:

- I can't open a form in VS designer, it says:
 System.InvalidCastException: Unable to cast object of type 'Telerik.Charting.Styles.Unit' to type 'Telerik.Charting.Styles.Unit'.
The error occurs with these lines:

chartMarginsTitle1.Bottom = ((Telerik.Charting.Styles.

Unit)(resources.GetObject("chartMarginsTitle1.Bottom")));

 


- my RadGrids lose their Size property, their width takes big big values, and I need to reset them manually....

4 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 10 Dec 2009, 08:24 AM
Hello jc mag,

Thank you for contacting us.

On the RadChart issue, please try cleaning the solution and then restarting Visual Studio.

As to your question about RadGridView, we changed the AutoSize property default value to false. Please excuse us for the introduced inconvenience. You already found the best solution -- setting the size explicitly will fix the issue.

Best wishes,

Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gary Robson
Top achievements
Rank 1
answered on 02 Feb 2010, 02:52 PM
I had the same problem with the reference to the Chart.
In the formName.Designer.vb file I commented out the references to 
        'ChartMargins1.Bottom = resources.GetObject("ChartMargins1.Bottom")...
        'ChartMargins1.Left = resources.GetObject("ChartMargins1.Left")...
        'ChartMargins1.Right = resources.GetObject("ChartMargins1.Right")...
        'ChartMargins1.Top = resources.GetObject("ChartMargins1.Top")...

This then allowed me to open the form and adjust the margins.

Gary
0
gureumi
Top achievements
Rank 1
answered on 02 Feb 2010, 07:11 PM
I upgraded winform application to Q3 SP1(V. 2009.3.9.1203) but have an error below during runtime.

"Could not load file or assembly 'Telerik.WinControls.UI, Version=2009.2.9.729, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' or one of its dependencies. The system cannot find the file specified"


What I did was that I had removed all previous versions before Intalling Q3 SP1.
And In my application, I replaced old dlls with  V. 2009.3.9.1203.

Do I have to reinstall old Version=2009.2.9.729?

 

0
Nick
Telerik team
answered on 04 Feb 2010, 09:29 AM
Hi,

Thank you for contacting us. Did you set Copy Local property to true for each of the assemblies your application depends on? Does your project has references to TelerikCommon, RadControls and RadControls.UI assemblies? I am looking forward to helping you further with that, it should no be hard to fix.

Tags
General Discussions
Asked by
jc mag
Top achievements
Rank 1
Answers by
Nick
Telerik team
Gary Robson
Top achievements
Rank 1
gureumi
Top achievements
Rank 1
Share this question
or