Server Error in '/' Application.

'Evan.Model.DynamicModel' does not contain a definition for 'ParentId'

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: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Evan.Model.DynamicModel' does not contain a definition for 'ParentId'

Source Error:

Line 10:         <ul>
Line 11: 
Line 12:             <% string arrChannel_list = GetAllChannelId(curChannel.Id); %>
Line 13:             <% string[] a_b = arrChannel_list.Trim(',').Split(',');  %>
Line 14:             <% int topChannelId = Convert.ToInt32(a_b[a_b.Length-1]); %>

Source File: f:\shenzhong20171201\Pages\_include\leftnav.html    Line: 12

Stack Trace:

[RuntimeBinderException: 'Evan.Model.DynamicModel' does not contain a definition for 'ParentId']
   CallSite.Target(Closure , CallSite , Object ) +344
   Evan.WebPageUI.Base.GetAllChannelId(Int32 channelId) +936
   Evan.WebPageUI.Base.GetAllChannelId(Int32 channelId) +3312
   ASP.pages_history_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in f:\shenzhong20171201\Pages\_include\leftnav.html:12
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5274

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