Unable to cast object of type 'Active.Modules.Forums.Controls.PagerNav' to type 'DotNetNuke.Modules.ActiveForums.Controls.PagerNav'.

Feb 27, 2013 at 5:24 PM
Hi,

I have upgraded AF 3.6.4 to AF 5.0.2 on my Dnn 6.2.6 and I have selected "TopicsView" template (which came with the module install) as the Topic Display page and I am getting following error:

Unable to cast object of type 'Active.Modules.Forums.Controls.PagerNav' to type 'DotNetNuke.Modules.ActiveForums.Controls.PagerNav'.

The error is happening in BuildPager() method at
DotNetNuke.Modules.ActiveForums.Controls.PagerNav Pager1 = null;
            Pager1 = (DotNetNuke.Modules.ActiveForums.Controls.PagerNav)(this.FindControl("Pager1"));
I saw couple of post online similiar to the error I am getting, but didn't find the solution.

Interesting thing is, I am using TopicView template for Topc Display, which also uses PagerNav control and it doesn't throw this error. Could anyone please point me what might be the problem.

Thanks,
Ana
Coordinator
Feb 27, 2013 at 5:46 PM
Edit your template and change any references to "Active.Modules.Forums" to "DotNetNuke.Modules.ActiveForums"

That should resolve the issue for you.
Feb 27, 2013 at 8:14 PM
Thank you!! That did it.

Ana