Exception in HttpClient - Silverlight

May 8, 2015 at 5:55 PM
Has anyone run into issues with silverlight? We have a multi-platform app, and using the sdk I'm able to get GA statistics on Windows and iOS (Xamarin), but silverlight throws an exception on any tracker.Send methods.

The exception tells me:
'iso-8859-1' is not a supported encoding name.
which comes from the Latin1Encoding.GetEncoding method:
    mscorlib.dll!System.Globalization.EncodingTable.internalGetCodePageFromName(string name) + 0x134 bytes  
    mscorlib.dll!System.Globalization.EncodingTable.GetCodePageFromName(string name) + 0x69 bytes   
    mscorlib.dll!System.Text.Encoding.GetEncoding(string name) + 0x8 bytes  
    System.Net.Http!System.Text.Latin1Encoding.GetEncoding() + 0x31 bytes   
    System.Net.Http!System.Net.Http.HttpRuleParser.HttpRuleParser() + 0x1af bytes   
    [Managed to Native Transition]  
    System.Net.Http!System.Net.Http.Headers.HttpHeaders.CheckHeaderName(string name) + 0x95 bytes   
    System.Net.Http!System.Net.Http.Headers.HttpHeaders.Add(string name, string value) + 0x31 bytes 
    System.Net.Http!System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.ProductInfoHeaderValue>.ParseAdd(string input) + 0x51 bytes   
    GoogleAnalytics.Core!GoogleAnalytics.Core.GAServiceManager.GetHttpClient() + 0xaf bytes 
    GoogleAnalytics.Core!GoogleAnalytics.Core.GAServiceManager.DispatchImmediatePayload() + 0x7d bytes  
Why would this be happening on silverlight only? The same call to
tracker.SendView("test view")
is being called for all three platforms.

Thank you in advance!
May 11, 2015 at 6:29 PM
After further investigation it appears the version of System.Net.Http that we are using is - which appears to cause the problem with this SDK
Jul 13, 2015 at 1:08 AM
Glad you solved it. Thanks for posting the resolution for others.