1
Vote

FiftyOneClientCapabilityProvider Issue for Swedish Language

description

Hi

Our client site http://bankid.finityasset.net 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.

Error:
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.

Regards
Sri

comments

jwrosewell wrote Jun 5 at 12:03 PM

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 at 4:13 PM

Hi

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

br
Nicklas