“/”应用程序中的服务器错误。

“Evan.Model.DynamicModel”未包含“ParentId”的定义

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: “Evan.Model.DynamicModel”未包含“ParentId”的定义

源错误:


行 118:<script src="/res/webjs/topsearch.js"></script>
行 119:<script>
行 120:    $(function () { var curChannelId = "<%=GetAllChannelId(curChannel.Id)%>"; $(".iagnavcont20 ul a").each(function () { var arel = $(this).attr("rel"); if (curChannelId.indexOf(',' + arel + ',') > -1) { $(this).addClass("cur"); } }) })
行 121:</script>
行 122:<script>

源文件: d:\webroot\xiange\web\templates\_include\top.html    行: 120

堆栈跟踪:


[RuntimeBinderException: “Evan.Model.DynamicModel”未包含“ParentId”的定义]
   CallSite.Target(Closure , CallSite , Object ) +320
   Evan.WebPageUI.Base.GetAllChannelId(Int32 channelId) +910
   ASP.templates_product_details_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\webroot\xiange\web\templates\_include\top.html:120
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9490


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3282.0