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

innerException

3 Answers 440 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 25 Sep 2009, 09:47 PM
I keep seeing this red error box with a cryptic message and an instruction to "See innerException for details" (or something to that effect.

How does one check this innerException?

Thanks

3 Answers, 1 is accepted

Sort by
0
Rick
Top achievements
Rank 1
answered on 25 Sep 2009, 11:36 PM
Note: Specifically, this occurs when calling a user function from within a textbox.  The exact message thrown is:

"An error has occurred while processing textbox "Textbox16":
An error has occurred while executing function PassCode().
Check InnerException for further information."

The C# code for the PassCode function (which resides in the report.cs file) after I stripped off all internal code for testing the problem is:

public static string PassCode(string S)
{
string Result="PassCode";
Return Result;
}

So there is nothing really happening here outside of calling the function and expecting the string "PassCode" to be returned to the textbox.

Thanks
0
Steve
Telerik team
answered on 28 Sep 2009, 08:11 AM
Hi Rick,

We were not able to reproduce any errors using the sample user function you've provided (see attached report), so there must be something else causing it. Do you use this user function somewhere else except in a direct textbox expression?
By innerException, we refer to the InnerException of the error in Visual Studio. Also if you show the VS Output window, you should see a stack trace there with possibly a more meaningful error and pointer to where exactly the exception occurs.

Kind 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
Rick
Top achievements
Rank 1
answered on 29 Sep 2009, 02:46 AM
yeah, i found some bugs in my code behind which I fixed.  The real question was about getting to the InnerException, which you have now answered.  Thank you!
Tags
General Discussions
Asked by
Rick
Top achievements
Rank 1
Answers by
Rick
Top achievements
Rank 1
Steve
Telerik team
Share this question
or