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

Upgrade Problem

5 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abdul
Top achievements
Rank 1
Abdul asked on 02 Oct 2012, 06:20 PM
Hi,

We recently upgraded from RadControls for Silverlight Q2 2011 to RadControls for Silverlight Q2 2012 SP2.

I made the specified changes in the change log so that the project builds correctly. But when running the Silverlight, this mysterious errors throws for views with Chart controls involved. Any ideas, or how to track this down?

Thanks.

Line: 151
Char: 13
Error: Unhandled Error in Silverlight Application Code:2531 Category: 
ParseErrorMessage: Failed to assign to property 'System.Windows.FrameworkElement.Style'.
File:
Line: 286
Position: 57
Code: 0

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 03 Oct 2012, 05:26 AM
Hi,

 Can you check the inner exception? 

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Abdul
Top achievements
Rank 1
answered on 03 Oct 2012, 05:36 PM
Hi Vlad,

Thank you for the response. But I was wondering how I can do that.

Below is the script that we are using to bubble the current message.

var errMsg = "Unhandled Error in Silverlight Application " + appSource + "";
 
 
            errMsg += "Code: " + iErrorCode + "";
            errMsg += "Category: " + errorType + "";
            errMsg += "Message: " + args.ErrorMessage + "";
 
 
            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "";
                errMsg += "Line: " + args.lineNumber + "";
                errMsg += "Position: " + args.charPosition + "";
            }
            else if (errorType == "RuntimeError") {
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "";
                    errMsg += "Position: " + args.charPosition + "";
                }
                errMsg += "MethodName: " + args.methodName + "";
            }
 
 
            throw new Error(errMsg);

0
Vlad
Telerik team
answered on 04 Oct 2012, 05:54 AM
Hello,

 You can enable your Visual Studio to break on every CLR exception and use the debugger to check the inner exception. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Abdul
Top achievements
Rank 1
answered on 04 Oct 2012, 05:15 PM
Thank you for your help Vlad. I have tried that and Enabled Common Language Runtime Exceptions, but nothing breaks. Only that script is used and throwing the error.

Any other suggestions?

Thanks.
0
Vlad
Telerik team
answered on 05 Oct 2012, 05:28 AM
Hello,

 I'm afraid that I don't have any more suggestions. Please send us an example project demonstrating your scenario and the exception. We will review your case and we will let you know our findings. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Abdul
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Abdul
Top achievements
Rank 1
Share this question
or