dbelmont / ExpressionBuilder

A library that provides a simple way to create lambda expressions to filter lists and database queries.
Apache License 2.0
372 stars 105 forks source link

Getting exception on Mono 5.20.1.19 #55

Open yar1k0v opened 5 years ago

yar1k0v commented 5 years ago

Here is the stack trace

The type initializer for 'ExpressionBuilder.Operations.Operation' threw an exception.|NancyEngine.InvokeOnErrorHook => ErrorPipeline.Invoke => <>c.<ApplicationStartup>b__9_4|System.TypeInitializationException: The type initializer for 'ExpressionBuilder.Operations.Operation' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ExpressionBuilder.Helpers.OperationHelper' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.AmbiguousMatchException: Ambiguous match found.
  at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <6649516e5b3542319fb262b421af0adb>:0
   --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <6649516e5b3542319fb262b421af0adb>:0
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x000a8] in <6649516e5b3542319fb262b421af0adb>:0
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <6649516e5b3542319fb262b421af0adb>:0
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <6649516e5b3542319fb262b421af0adb>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <6649516e5b3542319fb262b421af0adb>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0
  at ExpressionBuilder.Helpers.OperationHelper+<>c.<LoadDefaultOperations>b__3_3 (System.Type t) [0x00000] in <732241a532db4d2db388f95ddfe0eabe>:0
  at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00045] in <35ad2ebb203f4577b22a9d30eca3ec1f>:0
  at System.Collections.Generic.HashSet`1[T].UnionWith (System.Collections.Generic.IEnumerable`1[T] other) [0x00026] in <35ad2ebb203f4577b22a9d30eca3ec1f>:0
  at System.Collections.Generic.HashSet`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x0004c] in <35ad2ebb203f4577b22a9d30eca3ec1f>:0
  at ExpressionBuilder.Helpers.OperationHelper.LoadDefaultOperations () [0x000a2] in <732241a532db4d2db388f95ddfe0eabe>:0
  at ExpressionBuilder.Helpers.OperationHelper..cctor () [0x00000] in <732241a532db4d2db388f95ddfe0eabe>:0
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at ExpressionBuilder.Operations.Operation..cctor () [0x00000] in <732241a532db4d2db388f95ddfe0eabe>:0
   --- End of inner exception stack trace ---