terrajobst/nquery

Exception: The invoked member is not supported in a dynamic assembly

Opened this issue · 0 comments

Ported from CodePlex

Tried to issue the following query:

SELECT  'abc'.Split('b', 0, CAST(0 AS StringSplitOptions))

It gave me the following exception:

The invoked member is not supported in a dynamic assembly. (mscorlib)

Program Location:

at System.Reflection.Emit.AssemblyBuilder.GetExportedTypes()
at NQuery.Compilation.Binder.AddTypes(ICollection`1 target, Assembly assembly, String typeName, Boolean caseSensitive)
at NQuery.Compilation.Binder.BindType(String assemblyQualifiedTypeName, Boolean caseSensitive)
at NQuery.Compilation.Resolver.VisitCastExpression(CastExpression expression)
at NQuery.Compilation.StandardVisitor.Visit(AstNode node)
at NQuery.Compilation.StandardVisitor.VisitExpression(ExpressionNode expression)
at NQuery.Compilation.StandardVisitor.VisitMethodInvocationExpression(MethodInvocationExpression expression)
at NQuery.Compilation.Resolver.VisitMethodInvocationExpression(MethodInvocationExpression expression)
at NQuery.Compilation.StandardVisitor.Visit(AstNode node)
at NQuery.Compilation.StandardVisitor.VisitExpression(ExpressionNode expression)
at NQuery.Compilation.Resolver.VisitSelectQuery(SelectQuery query)
at NQuery.Compilation.StandardVisitor.Visit(AstNode node)
at NQuery.Compilation.Compiler.PhaseRunner.Run()
at NQuery.Compilation.Compiler.CompileQuery(String queryText, Scope scope)
at NQuery.Query.Compile()
at NQuery.Query.ExecuteDataTable()
at ...QueryEditorWindow.ExecuteQuery()