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

How do i debug???????

4 Answers 215 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 18 Jan 2010, 10:17 PM
Hello,

I am running a report I built and I get:

An error has occurred while processing Report '':
Specific cast is not valid.

How am I supposed to debug this?  I have no idea what is causing this.

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Jan 2010, 07:48 AM
Hello Brian,

You can debug your code only if you have referenced and using your reports in an actual application (be it windows forms or web forms).

Regards,
Steve
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
Brian Mains
Top achievements
Rank 1
answered on 19 Jan 2010, 02:06 PM
Hello,

Even if I run in a web form, the error is with one of the expressions probably, but I can't figure out which one when I don't even get a stack trace; is there some way to figure this out?  Can you enable logging to event log or something?

Thanks.
0
Chris Gillies
Top achievements
Rank 1
answered on 19 Jan 2010, 02:33 PM
Check the output window in Visual Studio. Also the error is most likely coming from your code behind (i.e. if you have user functions etc.) so place a debugger there to step through your code.
Note that the expression language is not a programming language and you should rely on the syntax described in Telerik's documentation: http://www.telerik.com/help/reporting/designing-reports-item-binding-expressions.html

Cheers


0
Brian Mains
Top achievements
Rank 1
answered on 19 Jan 2010, 02:56 PM
Hey,

That's the thing; I had verified it and it was clearly within the report; I just fixed the issue and that was because of something within the expression.  So that's my concern, is how to figure that out...  Cause for a second there, I thought I was using a Microsoft product :-)  Just kidding.

Thanks.
Tags
General Discussions
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Steve
Telerik team
Brian Mains
Top achievements
Rank 1
Chris Gillies
Top achievements
Rank 1
Share this question
or