Forum list » Forum »
Exception when adding a second ForumThreadsPager to a ForumThreadListTemplated
Pages:  1
(11 posts)

Exception when adding a second ForumThreadsPager to a ForumThreadListTemplated

Hi

I tried to add a ForumThreadsPager to the FooterTemplate of the ForumThreadListTemplated, while already having one in the HeaderTemplate.

It resulted in an exception:

Unable to cast object of type 'System.Web.UI.WebControls.PlaceHolder' to type 'WAF.Presentation.Web.ForumThreadPanel'.

[InvalidCastException: Unable to cast object of type 'System.Web.UI.WebControls.PlaceHolder' to type 'WAF.Presentation.Web.ForumThreadPanel'.]
   WAF.Presentation.Web.ForumThreadsPager.OnLoad(EventArgs e) +47
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

(144 posts)

Fixed

This was fixed in a new update a couple of weeks ago. Upgrade to the latest version, and it will work.