I have a simple lambda expression which runs fine as a UNIT test and also runs fine when I copy the code into the Main method of my application. However, when I run the same piece of code within a callback method (via JMS courier) I get the above error. Has anyone encountered this?
Example code failing:
Expression<Func<JupiterDividend, bool>> expr = v => true;
expr.Compile(); // This is what fails