KeyNotFoundException in EnsureUserAgent

tq2production
Posts: 4
Joined: Thu Aug 15, 2013 7:51 am

KeyNotFoundException in EnsureUserAgent

Postby tq2production » Thu Aug 15, 2013 7:52 am

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)

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: KeyNotFoundException in EnsureUserAgent

Postby kamermans » Thu Aug 15, 2013 10:36 am

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?
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: KeyNotFoundException in EnsureUserAgent

Postby sm_support2 » Fri Aug 16, 2013 4:04 am

Hi there,

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

tq2production
Posts: 4
Joined: Thu Aug 15, 2013 7:51 am

Re: KeyNotFoundException in EnsureUserAgent

Postby tq2production » Thu Aug 22, 2013 2:55 pm

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?

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: KeyNotFoundException in EnsureUserAgent

Postby sm_support2 » Mon Aug 26, 2013 12:55 pm

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

tq2production
Posts: 4
Joined: Thu Aug 15, 2013 7:51 am

Re: KeyNotFoundException in EnsureUserAgent

Postby tq2production » Mon Aug 26, 2013 1:18 pm

Yes, the email address on my forum account is good for contacting me. Thanks!

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: KeyNotFoundException in EnsureUserAgent

Postby sm_support2 » Mon Aug 26, 2013 1:30 pm

We are about to contact you offline. Thank you


Who is online

Users browsing this forum: No registered users and 2 guests