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:
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.
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!