This question is locked. New answers and comments are not allowed.
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
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
0
Hi,
Vlad
the Telerik team
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.
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
Hello,
Vlad
the Telerik team
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.
Any other suggestions?
Thanks.
0
Hello,
Vlad
the Telerik team
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.