This project has moved. For the latest updates, please go here.

FiftyOneClientCapabilityProvider Issue for Swedish Language



Our client site with DNN 7.1.2, we get the following error when we want to check customize module Sal_MobileDetector with the IClientCapability to redirect mobile version.
But it is only when we have a language other than English (United States).
If I change to Swedish becomes the error and when I change back to English or other languages it works as it should.

DotNetNuke.Services.Exceptions.ModuleLoadException: The given key was not present in the dictionary.
---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.SortedList2.get_Item(TKey key) at DotNetNuke.Providers.FiftyOneClientCapabilityProvider.FiftyOneClientCapability.GetCapabilities(SortedList2 properties)
at DotNetNuke.Providers.FiftyOneClientCapabilityProvider.FiftyOneClientCapability.Initialise(SortedList`2 properties)
at DotNetNuke.Providers.FiftyOneClientCapabilityProvider.FiftyOneClientCapabilityProvider.GetClientCapability(String userAgent)
at DotNetNuke.Services.ClientCapability.ClientCapabilityProvider.GetClientCapability(HttpRequest httpRequest)
at Sal_MobileDetector.ViewSal_MobileDetector.Page_Init(Object sender, EventArgs e) --- End of inner exception stack trace ---

We found the issue in this line of the source code below:
DotNetNuke.Services.ClientCapability.IClientCapability device = DotNetNuke.Services.ClientCapability.ClientCapabilityProvider.CurrentClientCapability;

We did the changes for missing resource files and translations. But no luck.
Even we created clean swedish (sweden) language pack from core english US pack of DNN 7.1.2.
Still it shows error for Swedish language,
I think DNN FiftyOneClientCapabilityProvider component issue,
it is not supporting swedish language code "sv-SE" when component localize.
We checked DNN core Redirection Method also is not working for swedish language.

Please advise how to fix this issue.

Advance thanks for your assistant.



jwrosewell wrote Jun 5, 2014 at 11:03 AM

Sorry for the long delay in responding to this issue. We will discuss the DNN team as part of the 7.3 DNN release to see if this is something they are aware of.

If you (or others) have urgent questions for 51Degrees the fastest method to raise them is via our web site.

nicklasv wrote Jul 2, 2014 at 3:13 PM


We have the excat same problem on one site but not other. Have you been in contact with DNN Team and solved this bug?