3 Answers, 1 is accepted
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
"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
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.
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!