question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception thrown (System.TypeInitializationException: The type initializer for 'FormatterCache`1') when using NEST.v7

See original GitHub issue

NEST/Elasticsearch.Net version: 7.10.0

Elasticsearch version: 7.10.0

Description of the problem including expected versus actual behavior: Exceptions are thrown periodically and all requests fail. After restarting the application, the error is no longer repeated.

Steps to reproduce: The steps to reproduce could not be installed.

Expected behavior No error

Platform: Mono 6.6.0.161 .NET: .NET Framework 4.8 OS: CentOS Linux release 7.9.2009 (Core), Linux 3.10.0-862.el7.x86_64

This may be due to a issue? We cannot quickly switch to .NET Core.

DebugInformation:

FailureReason 1
# FailureReason: Unrecoverable/Unexpected BadRequest while attempting POST on http://127.0.0.1:9200/object_*_2021-04-21*%2C-*folder*/_search?typed_keys=true&ignore_unavailable=true&track_total_hits=true
 - [1] BadRequest: Node: http://127.0.0.1:9200/ Exception: TypeInitializationException Took: 00:00:00.8450220
# Audit exception in step 1 BadRequest:
System.TypeInitializationException: The type initializer for 'FormatterCache`1' threw an exception. ---> System.TypeLoadException: Could not load type 'Elasticsearch.Net.Nest_ITermQueryFormatter10' from assembly ''.
  at (wrapper managed-to-native) System.RuntimeType.GetConstructors_native(System.RuntimeType,System.Reflection.BindingFlags)
  at System.RuntimeType.GetConstructors_internal (System.Reflection.BindingFlags bindingAttr, System.RuntimeType reflectedType) [0x00008] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructorCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Boolean allowPrefixLookup) [0x00047] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructors (System.Reflection.BindingFlags bindingAttr) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetDefaultConstructor () [0x0002c] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectTypeBuilder.BuildFormatterToAssembly[T] (Elasticsearch.Net.Utf8Json.Internal.Emit.DynamicAssembly assembly, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver selfResolver, System.Func`2[T,TResult] mutator, System.Func`2[T,TResult] propertyMapper, System.Boolean excludeNull) [0x000d6] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase+FormatterCache`1[T]..cctor () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase.GetFormatter[T] () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.FieldNameQueryFormatter`2[T,TInterface].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, TInterface value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004f] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00a33] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter4.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00147] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter4.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x0004b] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.QueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00007] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_ISearchRequestFormatter1.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.ISearchRequest , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00339] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.SerializeUnsafe[T] (T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x00024] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.Serialize[T] (System.IO.Stream stream, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x0000a] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.DefaultHighLevelSerializer.Serialize[T] (T data, System.IO.Stream writableStream, Elasticsearch.Net.SerializationFormatting formatting) [0x00008] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.DiagnosticsSerializerProxy.Serialize[T] (T data, System.IO.Stream stream, Elasticsearch.Net.SerializationFormatting formatting) [0x0001b] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.SerializableData`1[T].Write (System.IO.Stream writableStream, Elasticsearch.Net.IConnectionConfigurationValues settings) [0x00022] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse] (Elasticsearch.Net.RequestData requestData) [0x0006e] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse] (Elasticsearch.Net.RequestData requestData) [0x000b3] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse] (Elasticsearch.Net.RequestData requestData) [0x000b3] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Transport`1[TConnectionSettings].Request[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x000b2] in <60a3861581464a20a2d29aac8e312089>:0 
# Inner Exception: The type initializer for 'FormatterCache`1' threw an exception.
System.TypeInitializationException: The type initializer for 'FormatterCache`1' threw an exception. ---> System.TypeLoadException: Could not load type 'Elasticsearch.Net.Nest_ITermQueryFormatter10' from assembly ''.
  at (wrapper managed-to-native) System.RuntimeType.GetConstructors_native(System.RuntimeType,System.Reflection.BindingFlags)
  at System.RuntimeType.GetConstructors_internal (System.Reflection.BindingFlags bindingAttr, System.RuntimeType reflectedType) [0x00008] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructorCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Boolean allowPrefixLookup) [0x00047] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructors (System.Reflection.BindingFlags bindingAttr) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetDefaultConstructor () [0x0002c] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectTypeBuilder.BuildFormatterToAssembly[T] (Elasticsearch.Net.Utf8Json.Internal.Emit.DynamicAssembly assembly, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver selfResolver, System.Func`2[T,TResult] mutator, System.Func`2[T,TResult] propertyMapper, System.Boolean excludeNull) [0x000d6] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase+FormatterCache`1[T]..cctor () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase.GetFormatter[T] () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.FieldNameQueryFormatter`2[T,TInterface].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, TInterface value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004f] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00a33] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter4.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00147] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter4.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x0004b] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.QueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00007] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_ISearchRequestFormatter1.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.ISearchRequest , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00339] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.SerializeUnsafe[T] (T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x00024] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.Serialize[T] (System.IO.Stream stream, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x0000a] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.DefaultHighLevelSerializer.Serialize[T] (T data, System.IO.Stream writableStream, Elasticsearch.Net.SerializationFormatting formatting) [0x00008] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.DiagnosticsSerializerProxy.Serialize[T] (T data, System.IO.Stream stream, Elasticsearch.Net.SerializationFormatting formatting) [0x0001b] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.SerializableData`1[T].Write (System.IO.Stream writableStream, Elasticsearch.Net.IConnectionConfigurationValues settings) [0x00022] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse] (Elasticsearch.Net.RequestData requestData) [0x0006e] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse] (Elasticsearch.Net.RequestData requestData) [0x000b3] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse] (Elasticsearch.Net.RequestData requestData) [0x000b3] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Transport`1[TConnectionSettings].Request[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x000b2] in <60a3861581464a20a2d29aac8e312089>:0 
# Exception:
Elasticsearch.Net.UnexpectedElasticsearchClientException: The type initializer for 'FormatterCache`1' threw an exception. ---> System.TypeInitializationException: The type initializer for 'FormatterCache`1' threw an exception. ---> System.TypeLoadException: Could not load type 'Elasticsearch.Net.Nest_ITermQueryFormatter10' from assembly ''.
  at (wrapper managed-to-native) System.RuntimeType.GetConstructors_native(System.RuntimeType,System.Reflection.BindingFlags)
  at System.RuntimeType.GetConstructors_internal (System.Reflection.BindingFlags bindingAttr, System.RuntimeType reflectedType) [0x00008] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructorCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Boolean allowPrefixLookup) [0x00047] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructors (System.Reflection.BindingFlags bindingAttr) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetDefaultConstructor () [0x0002c] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectTypeBuilder.BuildFormatterToAssembly[T] (Elasticsearch.Net.Utf8Json.Internal.Emit.DynamicAssembly assembly, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver selfResolver, System.Func`2[T,TResult] mutator, System.Func`2[T,TResult] propertyMapper, System.Boolean excludeNull) [0x000d6] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase+FormatterCache`1[T]..cctor () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase.GetFormatter[T] () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.FieldNameQueryFormatter`2[T,TInterface].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, TInterface value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004f] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00a33] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter4.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00147] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter4.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x0004b] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.QueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00007] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_ISearchRequestFormatter1.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.ISearchRequest , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00339] in <8dce4a63adc84ce3a9a648e1714477a1>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.SerializeUnsafe[T] (T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x00024] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.Serialize[T] (System.IO.Stream stream, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x0000a] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.DefaultHighLevelSerializer.Serialize[T] (T data, System.IO.Stream writableStream, Elasticsearch.Net.SerializationFormatting formatting) [0x00008] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.DiagnosticsSerializerProxy.Serialize[T] (T data, System.IO.Stream stream, Elasticsearch.Net.SerializationFormatting formatting) [0x0001b] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.SerializableData`1[T].Write (System.IO.Stream writableStream, Elasticsearch.Net.IConnectionConfigurationValues settings) [0x00022] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse] (Elasticsearch.Net.RequestData requestData) [0x0006e] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse] (Elasticsearch.Net.RequestData requestData) [0x000b3] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse] (Elasticsearch.Net.RequestData requestData) [0x000b3] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Transport`1[TConnectionSettings].Request[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x000b2] in <60a3861581464a20a2d29aac8e312089>:0 
   --- End of inner exception stack trace ---
  at Elasticsearch.Net.Transport`1[TConnectionSettings].Request[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x00152] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.ElasticLowLevelClient.DoRequest[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x00006] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.ElasticClient.DoRequest[TRequest,TResponse] (TRequest p, Elasticsearch.Net.IRequestParameters parameters, System.Action`1[T] forceConfiguration) [0x0007e] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ElasticClient.Search[TDocument] (Nest.ISearchRequest request) [0x00008] in <cbef9dfe950248faabea041852d82ebc>:0 
  at App.SearchProvider.Search.NestExt.TimeLimitedSearch[T] (Nest.IElasticClient elasticClient, Nest.ISearchRequest request) [0x00006] in <5c8558723e3544739b68334bc7880e94>:0 
  at App.SearchProvider.Search.SearchProvider.TimeLimitedSearch[T] (Nest.ISearchRequest request) [0x00011] in <5c8558723e3544739b68334bc7880e94>:0
FailureReason 2
# FailureReason: Unrecoverable/Unexpected BadRequest while attempting POST on http://127.0.0.1:9200/560%2C561%2C562%2C563%2C564%2C565%2C566%2C567%2C568%2C569%2C570%2C571%2C572%2C573%2C574/_search?typed_keys=true&ignore_unavailable=true&track_total_hits=true
 - [1] BadRequest: Node: http://127.0.0.1:9200/ Exception: TypeInitializationException Took: 00:00:00.0219480
# Audit exception in step 1 BadRequest:
System.TypeInitializationException: The type initializer for 'FormatterCache`1' threw an exception. ---> System.TypeLoadException: Could not load type 'Elasticsearch.Net.Nest_IQueryStringQueryFormatter13' from assembly ''.
  at (wrapper managed-to-native) System.RuntimeType.GetConstructors_native(System.RuntimeType,System.Reflection.BindingFlags)
  at System.RuntimeType.GetConstructors_internal (System.Reflection.BindingFlags bindingAttr, System.RuntimeType reflectedType) [0x00008] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructorCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Boolean allowPrefixLookup) [0x00047] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructors (System.Reflection.BindingFlags bindingAttr) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetDefaultConstructor () [0x0002c] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectTypeBuilder.BuildFormatterToAssembly[T] (Elasticsearch.Net.Utf8Json.Internal.Emit.DynamicAssembly assembly, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver selfResolver, System.Func`2[T,TResult] mutator, System.Func`2[T,TResult] propertyMapper, System.Boolean excludeNull) [0x000d6] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase+FormatterCache`1[T]..cctor () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase.GetFormatter[T] () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x006cd] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter3.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x0004b] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter3.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x000c5] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter3.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x000c5] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.QueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00007] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_ISearchRequestFormatter7.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.ISearchRequest , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00339] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.SerializeUnsafe[T] (T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x00024] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.Serialize[T] (System.IO.Stream stream, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x0000a] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.DefaultHighLevelSerializer.Serialize[T] (T data, System.IO.Stream writableStream, Elasticsearch.Net.SerializationFormatting formatting) [0x00008] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.DiagnosticsSerializerProxy.Serialize[T] (T data, System.IO.Stream stream, Elasticsearch.Net.SerializationFormatting formatting) [0x0001b] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.SerializableData`1[T].Write (System.IO.Stream writableStream, Elasticsearch.Net.IConnectionConfigurationValues settings) [0x00022] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse] (Elasticsearch.Net.RequestData requestData) [0x0006e] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse] (Elasticsearch.Net.RequestData requestData) [0x000b3] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Transport`1[TConnectionSettings].Request[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x000b2] in <60a3861581464a20a2d29aac8e312089>:0 
# Inner Exception: The type initializer for 'FormatterCache`1' threw an exception.
System.TypeInitializationException: The type initializer for 'FormatterCache`1' threw an exception. ---> System.TypeLoadException: Could not load type 'Elasticsearch.Net.Nest_IQueryStringQueryFormatter13' from assembly ''.
  at (wrapper managed-to-native) System.RuntimeType.GetConstructors_native(System.RuntimeType,System.Reflection.BindingFlags)
  at System.RuntimeType.GetConstructors_internal (System.Reflection.BindingFlags bindingAttr, System.RuntimeType reflectedType) [0x00008] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructorCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Boolean allowPrefixLookup) [0x00047] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructors (System.Reflection.BindingFlags bindingAttr) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetDefaultConstructor () [0x0002c] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectTypeBuilder.BuildFormatterToAssembly[T] (Elasticsearch.Net.Utf8Json.Internal.Emit.DynamicAssembly assembly, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver selfResolver, System.Func`2[T,TResult] mutator, System.Func`2[T,TResult] propertyMapper, System.Boolean excludeNull) [0x000d6] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase+FormatterCache`1[T]..cctor () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase.GetFormatter[T] () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x006cd] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter3.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x0004b] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter3.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x000c5] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter3.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x000c5] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.QueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00007] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_ISearchRequestFormatter7.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.ISearchRequest , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00339] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.SerializeUnsafe[T] (T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x00024] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.Serialize[T] (System.IO.Stream stream, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x0000a] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.DefaultHighLevelSerializer.Serialize[T] (T data, System.IO.Stream writableStream, Elasticsearch.Net.SerializationFormatting formatting) [0x00008] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.DiagnosticsSerializerProxy.Serialize[T] (T data, System.IO.Stream stream, Elasticsearch.Net.SerializationFormatting formatting) [0x0001b] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.SerializableData`1[T].Write (System.IO.Stream writableStream, Elasticsearch.Net.IConnectionConfigurationValues settings) [0x00022] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse] (Elasticsearch.Net.RequestData requestData) [0x0006e] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse] (Elasticsearch.Net.RequestData requestData) [0x000b3] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Transport`1[TConnectionSettings].Request[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x000b2] in <60a3861581464a20a2d29aac8e312089>:0 
# Exception:
Elasticsearch.Net.UnexpectedElasticsearchClientException: The type initializer for 'FormatterCache`1' threw an exception. ---> System.TypeInitializationException: The type initializer for 'FormatterCache`1' threw an exception. ---> System.TypeLoadException: Could not load type 'Elasticsearch.Net.Nest_IQueryStringQueryFormatter13' from assembly ''.
  at (wrapper managed-to-native) System.RuntimeType.GetConstructors_native(System.RuntimeType,System.Reflection.BindingFlags)
  at System.RuntimeType.GetConstructors_internal (System.Reflection.BindingFlags bindingAttr, System.RuntimeType reflectedType) [0x00008] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructorCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Boolean allowPrefixLookup) [0x00047] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetConstructors (System.Reflection.BindingFlags bindingAttr) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.GetDefaultConstructor () [0x0002c] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <6d03841284d248b2a69863e319721b74>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <6d03841284d248b2a69863e319721b74>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectTypeBuilder.BuildFormatterToAssembly[T] (Elasticsearch.Net.Utf8Json.Internal.Emit.DynamicAssembly assembly, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver selfResolver, System.Func`2[T,TResult] mutator, System.Func`2[T,TResult] propertyMapper, System.Boolean excludeNull) [0x000d6] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase+FormatterCache`1[T]..cctor () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Elasticsearch.Net.Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullTrueNameMutateCamelCase.GetFormatter[T] () [0x00000] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x006cd] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter3.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x0004b] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter3.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x000c5] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerCollectionFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, System.Collections.Generic.IEnumerable`1[T] value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00045] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IBoolQueryFormatter3.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IBoolQuery , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x000c5] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_IQueryContainerFormatter2.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.IQueryContainer , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00043] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.QueryContainerInterfaceFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.IQueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0004b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.QueryContainerFormatter.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, Nest.QueryContainer value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00007] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Nest_ISearchRequestFormatter7.Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& , Nest.ISearchRequest , Elasticsearch.Net.Utf8Json.IJsonFormatterResolver ) [0x00339] in <f69da6a85bf2433fa2379208aece7f6b>:0 
  at Nest.ReadAsFormatter`2[TRead,T].SerializeInternal (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x0000b] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ReadAsFormatter`2[TRead,T].Serialize (Elasticsearch.Net.Utf8Json.JsonWriter& writer, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver formatterResolver) [0x00000] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.SerializeUnsafe[T] (T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x00024] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Utf8Json.JsonSerializer.Serialize[T] (System.IO.Stream stream, T value, Elasticsearch.Net.Utf8Json.IJsonFormatterResolver resolver) [0x0000a] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.DefaultHighLevelSerializer.Serialize[T] (T data, System.IO.Stream writableStream, Elasticsearch.Net.SerializationFormatting formatting) [0x00008] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Elasticsearch.Net.DiagnosticsSerializerProxy.Serialize[T] (T data, System.IO.Stream stream, Elasticsearch.Net.SerializationFormatting formatting) [0x0001b] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.SerializableData`1[T].Write (System.IO.Stream writableStream, Elasticsearch.Net.IConnectionConfigurationValues settings) [0x00022] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse] (Elasticsearch.Net.RequestData requestData) [0x0006e] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse] (Elasticsearch.Net.RequestData requestData) [0x000b3] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.Transport`1[TConnectionSettings].Request[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x000b2] in <60a3861581464a20a2d29aac8e312089>:0 
   --- End of inner exception stack trace ---
  at Elasticsearch.Net.Transport`1[TConnectionSettings].Request[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x00152] in <60a3861581464a20a2d29aac8e312089>:0 
  at Elasticsearch.Net.ElasticLowLevelClient.DoRequest[TResponse] (Elasticsearch.Net.HttpMethod method, System.String path, Elasticsearch.Net.PostData data, Elasticsearch.Net.IRequestParameters requestParameters) [0x00006] in <60a3861581464a20a2d29aac8e312089>:0 
  at Nest.ElasticClient.DoRequest[TRequest,TResponse] (TRequest p, Elasticsearch.Net.IRequestParameters parameters, System.Action`1[T] forceConfiguration) [0x0007e] in <cbef9dfe950248faabea041852d82ebc>:0 
  at Nest.ElasticClient.Search[TDocument] (Nest.ISearchRequest request) [0x00008] in <cbef9dfe950248faabea041852d82ebc>:0 
  at App.SearchProvider.Search.NestExt.TimeLimitedSearch[T] (Nest.IElasticClient elasticClient, Nest.ISearchRequest request) [0x00006] in <5c8558723e3544739b68334bc7880e94>:0 
  at App.SearchProvider.Search.SearchProvider.TimeLimitedSearch[T] (Nest.ISearchRequest request) [0x00011] in <5c8558723e3544739b68334bc7880e94>:0 

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
stevejgordoncommented, May 6, 2021

Hi @KolyaNET. Thanks for raising this. This is very likely due to the Mono implementation differences. The code we use for serialization relies on System.Reflection.Emit in a number of places. I’ll review whether we can look at applying the same locking fix as used MessagePack. To set expectations, that won’t happen immediately but I’ll keep this on the backlog for a fix in the 7.x branch. In the next major, we’re aiming to move to System.Text.Json for serialization which has targets for Mono and Xamarin.

If you’re able to find a way to reproduce this fairly consistently, that would be a big help as we can then prove the fix once we implement it.

The best option would be to move to .NET Core if at all possible, where this won’t be an issue.

0reactions
KolyaNETcommented, Jan 31, 2022

@stevejgordon Thanks for the information! We have started the transition to .NET 6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - System.TypeInitializationException: 'The type initializer ...
TypeInitializationException is usually caused by an error in static field initialization or static constructor execution.
Read more >
TypeInitializationException Class (System)
The exception that is thrown as a wrapper around the exception thrown by the class initializer. This class cannot be inherited.
Read more >
[Solved] The type initializer for '' threw an exception
TypeInitializationException ". This error is raised due to Static constructor . Actually in my case i am accessing some value from the App.config ......
Read more >
TypeInitializationException occurs when more than one IIS ...
Description: An unhandled exception occurred during the execution of the current web ... TypeInitializationException: The type initializer for 'Sybase.Data.
Read more >
The type initializer for 'System.Linq.Dynamic.Core. ...
DynamicQueryableExtensions' threw an exception. System.TypeInitializationException: The type initializer for 'System.Linq.Dynamic.Core.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found