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.