FormatException occurring in System.Net.Http in a Xamarin iOS app on iPad 6th gen

We have an iOS app developed using Xamarin. The app is working fine on different devices like iPad Air, Air 2, 5th gen with iOS versions 11.2 and 11.3. But, the app is throwing exception and functionality is broken only for iPad 6th gen. Below are the exception details

System.FormatException: One of the identified items was in an invalid format. at System.Net.Http.Headers.HttpHeaders.AddInternal(System.String name, System.Collections.Generic.IEnumerable 1[T] values, System.Net.Http.Headers.HeaderInfo headerInfo, System.Boolean ignoreInvalid) [0x0004c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/ System.Net.Http.Headers/HttpHeaders.cs:196 at System.Net.Http.Headers.HttpHeaders.Add (System.String name, System.Collections.Generic.IEnumerable 1[T] values) [0x00011] in /Library/Frameworks/Xamarin.iOS.framework/Versions/ at System.Net.Http.Headers.HttpHeaders.Add (System.String name, System.String value) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/

iOS SDK 10.3 and Xamarin.iOS version are used on the build machine.

We are not sure if any System.Net.Http specific issues for iPad 6th Gen are causing this. The exception is occurring in a Portable Class Library that is using the .Net Portable profile "PCL 4.5 - Profile7" which adds .Net Portable subset with System.Net.Http.

Please help.

Sign In or Register to comment.