Page 1 of 1

KeyNotFoundException in EnsureUserAgent

Posted: Thu Aug 15, 2013 7:52 am
by tq2production
Our production application has started getting an exception when calling GetDeviceInfo(). The call stack is below. Any ideas?

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
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)

Re: KeyNotFoundException in EnsureUserAgent

Posted: Thu Aug 15, 2013 10:36 am
by kamermans
Is it possible that your list of capabilities has been changed on our side (the WURFL Cloud control panel)? Are you able to reproduce the issue from a client, or could it be that there is some strange HTTP traffic coming in, perhaps without a user agent header at all?

Re: KeyNotFoundException in EnsureUserAgent

Posted: Fri Aug 16, 2013 4:04 am
by sm_support2
Hi there,

Can you tell us more about what user-agent is causing this exception? we are curious to reproduce this. Thanks

Re: KeyNotFoundException in EnsureUserAgent

Posted: Thu Aug 22, 2013 2:55 pm
by tq2production
When I examine my web logs, it seems that these exceptions occur when I receive a request with a blank user agent. Any idea why I would receive a blank user agent?

Re: KeyNotFoundException in EnsureUserAgent

Posted: Mon Aug 26, 2013 12:55 pm
by sm_support2
HI there, we have a new version of the .NET Cloud Client for you. Can you please contact us offline at support#scientiamobile.com ?

is the email address with which you registered on the forum good enough to contact you?

please also tell us which exact version of the Cloud Client you are using

thank you

Re: KeyNotFoundException in EnsureUserAgent

Posted: Mon Aug 26, 2013 1:18 pm
by tq2production
Yes, the email address on my forum account is good for contacting me. Thanks!

Re: KeyNotFoundException in EnsureUserAgent

Posted: Mon Aug 26, 2013 1:30 pm
by sm_support2
We are about to contact you offline. Thank you