Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to configure mobile detection and redirection?How to configure mobile detection and redirection?
Previous
 
Next
New Post
8/28/2012 6:50 AM
 

Hello,

I'm trying to configure mobile detection and redirection with a DNN CE 06.02.02 (125) host, and have some troubles: detection seems to be properly configured, but redirection never happens if I visit my site with a mobile device.

I downloaded the 51Degrees database, and enabled it in 51Degrees.mobi.config:

<detection binaryFilePath="~/App_Data/51Degrees.mobi-Lite-2012.07.31.dat"/>

I also enabled logging, and see the database is initiated:

2012-08-28T10:44:37.0688750Z - 6136 - Debug - Disposing Redirection Module
2012-08-28T10:44:37.0688750Z - 6136 - Debug - Disposing Detector Module
2012-08-28T10:44:39.0063750Z - 6136 - Debug - Getting 'fiftyOne/redirect' configuration from file 'D:\Inetpub\topconsult\Web.config'.
2012-08-28T10:44:39.0220000Z - 6136 - Debug - Getting 'fiftyOne/redirect' configuration from file 'D:\Inetpub\topconsult\51Degrees.mobi.config'.
2012-08-28T10:44:39.0220000Z - 6136 - Debug - Initialising Detector Module
2012-08-28T10:44:39.0220000Z - 6136 - Debug - Initialising redirection module
2012-08-28T10:44:39.0220000Z - 6136 - Debug - Initialising redirection module static fields.
2012-08-28T10:44:40.4907500Z - 6136 - Debug - Getting 'fiftyOne/detection' configuration from file 'D:\Inetpub\topconsult\Web.config'.
2012-08-28T10:44:40.4907500Z - 6136 - Debug - Getting 'fiftyOne/detection' configuration from file 'D:\Inetpub\topconsult\51Degrees.mobi.config'.
2012-08-28T10:44:40.4907500Z - 6136 - Info - Creating provider from binary data file 'D:\Inetpub\topconsult\App_Data\51Degrees.mobi-Lite-2012.07.31.dat'.
2012-08-28T10:44:41.4282500Z - 6136 - Info - Created provider from binary data file 'D:\Inetpub\topconsult\App_Data\51Degrees.mobi-Lite-2012.07.31.dat'.



I then tried configuring a redirection rule, but if I check first option ("Create a mobile website redirection") I get an error:

Method: DotNetNuke.Modules.MobileManagement.SimpleSettingsView.OnLoad

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.MobileManagement.SimpleSettingsView.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---


I then tried configuring an advanced rule both with the admin tool (choosing second option, "Create a redirection using advanced options") and directly modifying 51Degrees.mobi.config, but I still cannot see redirection working.

Can anybody help me fixing this?

Thanks for any help,

al.


 
New Post
8/28/2012 7:52 AM
 

More on this: I just made the same steps on a 6.1.5 host, and all is working perfectly.

I see both 51degrees library and MobileManagement module were updated, is nobody else having issues with 6.2.2?  Cannot find a ticket at support.dotnetnuke.com either.


 
New Post
8/28/2012 9:53 AM
 

Hello,
I found out the error was caused by a missing value in site settings (the homepage tabid was not saved and this caused the exception in MobileManagement.SimpleSettingsView.OnLoad).

But still redirections are not applied on this 6.2.2 host...  no errors in eventlog, the only thing I notice is in 51degrees log I never see "OK".

Any ideas about where to check?


 
New Post
8/28/2012 12:03 PM
 

Here I am again: looks like I can only let it work if I specify a Page within this site as the target.

If I configure to redirect all site traffic to the mobile site (a parent portal on same host)  I get no redirections, while if I configure redirection from "Page within this site" , or even from Site, to a single Page within this site it will go.

Site aliases are ok, and both the mobile and std site can be resolved and navigated if you go directly to the url.

Can anybody help understanding the problem?



 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to configure mobile detection and redirection?How to configure mobile detection and redirection?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out