Hello,
I am developing a Xamarin.Forms application. After I upgraded to Xcode 10.2, It triggers the following exception every time a request is sent to server.
The type initializer for ‘ServiceStack.Text.Json.JsonReader`1’ threw an exception.
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at ServiceStack.Text.JsonSerializer.DeserializeFromString[T] (System.String value) [0x00012] in <6938b7c647be433bbd75df27e0fee17e>:0
at ServiceStack.Text.JsonSerializer.DeserializeFromStream[T] (System.IO.Stream stream) [0x00012] in <6938b7c647be433bbd75df27e0fee17e>:0
at ServiceStack.Serialization.JsonDataContractSerializer.DeserializeFromStream[T] (System.IO.Stream stream) [0x0003a] in <52aab4d925264d8287f22de0eaacfd67>:0
at ServiceStack.JsonServiceClient.DeserializeFromStream[T] (System.IO.Stream stream) [0x00000] in <52aab4d925264d8287f22de0eaacfd67>:0
at ServiceStack.ServiceClientBase.GetResponse[TResponse] (System.Net.WebResponse webResponse) [0x000e8] in <52aab4d925264d8287f22de0eaacfd67>:0
at ServiceStack.ServiceClientBase.Send[TResponse] (System.String httpMethod, System.String relativeOrAbsoluteUrl, System.Object request) [0x0012c] in <52aab4d925264d8287f22de0eaacfd67>:0
at ServiceStack.ServiceClientBase.Get[TResponse] (ServiceStack.IReturn`1[T] requestDto) [0x00012] in <52aab4d925264d8287f22de0eaacfd67>:0
However, all services work perfectly when testing through Swagger UI.
Any idea about this issue?
Thanks in advance.