Server Error in '/' Application.

Collection type requested is not the same type as criteria root

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Collection type requested is not the same type as criteria root

Source Error:


Line 23:             //ICriteria criteria = new Criteria<BOWpPostsView>();
Line 24:             //AddExpr(ref criteria, nomeChiave, chiave, nomeChiave);
Line 25:             IList<BOWpPostsView> BOList = criteria.List<BOWpPostsView>();
Line 26:             //Se lo trovo...
Line 27:             if (BOList.Count > 0)

Source File: d:\inetpub\webs\maxcalisthenicscom\tpl\tpl_Play.ascx.cs    Line: 25

Stack Trace:


[Exception: Collection type requested is not the same type as criteria root]
   WordPress.BusinessObjects.Criteria`1.List() +674
   tpl_Play.SelectBO() in d:\inetpub\webs\maxcalisthenicscom\tpl\tpl_Play.ascx.cs:25
   WordPress.Utils.BOWpPostTermTaxonomyViewControl.Page_Load(Object sender, EventArgs e) +274
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2857


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4667.0