Page 1 of 1

.NET: KeyNotFoundException (in EnsureUserAgent)

Posted: Tue Feb 25, 2014 10:16 am
by cspace
Hello,

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)
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!

Re: .NET: KeyNotFoundException (in EnsureUserAgent)

Posted: Wed Feb 26, 2014 11:19 am
by Elliotfehr
The updated cloud client that I just emailed over to you should fix this issue as well. As always, feel free to let me know if the issues persist.

Thank you,

Elliot

Re: .NET: KeyNotFoundException (in EnsureUserAgent)

Posted: Thu Apr 17, 2014 11:43 am
by CodeComputerlove
Hi

We're also experiencing this error. How do we get a copy of the updated Cloud Client?

Thanks,
Mark

Re: .NET: KeyNotFoundException (in EnsureUserAgent)

Posted: Thu Apr 17, 2014 2:28 pm
by Elliotfehr
Mark,

We are currently working on a public release that fixes this issue. In the meantime, I have uploaded an updated cloud client to your file manager on ScientiaMobile.com.

Thank you,

Elliot

Re: .NET: KeyNotFoundException (in EnsureUserAgent)

Posted: Wed May 14, 2014 5:17 am
by a3519870
Hello,

I'm trying to run the CloudClient but I get everytime this exception. Where can I find an updated version of the Client?

Thank you.
Harnold

Re: .NET: KeyNotFoundException (in EnsureUserAgent)

Posted: Thu May 15, 2014 2:00 pm
by Elliotfehr
Harnold,

I have just uploaded an updated version of the Cloud Client to your customer vault on scientiamobile.com.

Thank you,

Elliot

Re: .NET: KeyNotFoundException (in EnsureUserAgent)

Posted: Fri May 16, 2014 3:49 am
by a3519870
Hello,

thanks for the version you sent me but I'm still seeing the same error.
In addition the dll version of the one you sent me is 1.0.5.0 and the Cloud client public available is 1.1.0.0.

Thanks,
Harnold.

Re: .NET: KeyNotFoundException (in EnsureUserAgent)

Posted: Thu May 29, 2014 10:26 am
by Elliotfehr
Harnold,

I have attempted to email you with the email address you used to register on scientiamobile.com as well as directly through the forum. Feel free to let me know if you have still receiving this exception.

Thank you,

Elliot