El método CompileToMethod no admite las expresiones dinámicas. En lugar de ello, cree un árbol de expresión que use System.Runtime.CompilerServices.CallSite.
Click to search this error in Google
English version
Dynamic expressions are not supported by CompileToMethod. Instead, create an expression tree that uses System.Runtime.CompilerServices.CallSite.