I am trying to import 2 files into 2 different rich text files boxes using the "ReportUtilities.SetRTFControl" method. On publishing the report the following Exception is thrown
"Run validation for this report failed. Error detected was:
Exception has been thrown by the target of an invocation. Please fix before publishing report again"
Both of the ReportUtilities.SetRTFControl methods compiled okay on their own, so they are both valid statements. However when both of them are compliled together the Exception is thrown.
I had something like this happen, and it was just a mistake in my code where I was trying to load the RTF's into the same control by mistake. Since they both work independently - it might have some kind of conflict between the code for the 2 controls.
Take a little breather form your script, come back and pore over it with fresh eyes, that usually helps me out to find the small little mistake keeping everything else from working!
However you may want to copy your code up here so some dev team can have a look.
I think there is also something with importing the RTF's - project either needs to be checked out or you need to add some script to set read only to false (when project is checked in it sets the files to read only). There is another thread on here from Crystal Hacker where he's diving into that read only stuff.