-
4
Answers
-
Last Activity:
long time ago,
Anonymous
Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
Hi
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 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.SortedList`2.get_Item(TKey key) at DotNetNuke.Providers.FiftyOneClientCapabilityProvider.FiftyOneClientCapability.GetCapabilities(SortedList`2 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;
Please advise how to fix this issue.
Advance thanks for your assistant.
Regards
Sri