Method not found problem

Jan 12, 2009 at 5:52 PM
Hi,

i'm trying to use Flee with Visual Studio 2005 and 2008. I downloaded the FleeDataTableCompute example and with VS 2008 (after conversion of the Solution) everything went OK, but with VS 2005 i'm getting the run-time error Method not found for one of the System.Reflection methods. Does anyone know a solution? Is a .Net-Framework problem?

Thanks,
Alejandro
Coordinator
Jan 13, 2009 at 6:11 PM
I tried it in VS2005 on my machine and it runs fine.

You'll have to give me the exception details before I can track it down further.
Jan 15, 2009 at 4:55 PM
Hi,

i'm getting the following error:
Method not found: 'Void System.Reflection.Emit.DynamicMethod..ctor(System.String, System.Type, System.Type[])'.

on line 46 (IDynamicExpression e = context.CompileDynamic("Format(\"The price of {0} is: {1:C2}\", ItemName, price + (price * tax))"); ) of Program.cs in FleeDataTableCompute solution.

Thanks,
Alejandro
Coordinator
Jan 15, 2009 at 11:36 PM
Looks like that method was not in the original .NET 2.0 framework and was instead added as part of Service Pack 1.  If you upgrade, then it should work.