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.
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.
2.get_Item(TKey key) at DotNetNuke.Providers.FiftyOneClientCapabilityProvider.FiftyOneClientCapability.GetCapabilities(SortedList
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.