.NET: KeyNotFoundException (in EnsureUserAgent)
Posted: Tue Feb 25, 2014 10:16 am
Hello,
We're using the .NET API. Sometimes, when we hit CloudClientManager.GetDeviceInfo(HttpContext), we get this exception:
Presumably this code is looking for the user-agent header and not finding it, but as we can't see the source code, we can't be sure. Can you confirm?
Thanks!
We're using the .NET API. Sometimes, when we hit CloudClientManager.GetDeviceInfo(HttpContext), we get this exception:
Code: Select all
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at ScientiaMobile.WurflCloud.Http.CloudClient.EnsureUserAgent(String userAgent)
at ScientiaMobile.WurflCloud.Http.CloudClient.InitializeRequest(HttpContextBase context, String userAgent, Dictionary`2 reqParams)
at ScientiaMobile.WurflCloud.CloudClientManager.DetectDevice(HttpContextBase context, String userAgent, Dictionary`2 reqParams, String[] capabilities, Boolean uaMayBeDifferent)
at ScientiaMobile.WurflCloud.CloudClientManager.GetDeviceInfo(HttpContextBase context, String[] capabilities)
Thanks!