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

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

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

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

源错误:


行 71: 	templateBuilder.Append("                      </ul>                      <p class=\"mob-language hidden-md\">                         <a href=\"javascript:;\" class=\"searchinco\"></a>                      <a href=\"http://www.hongmen.com/\" target=\"_blank\">中文</a>                      <a href=\"/index.html\" class=\"borderline cur\"> International (English)</a>             </p>                  </div>              </div>          </div>      </div>  </div>  <script src=\"/res/webjs/topsearch.js\"></");
行 72: 	templateBuilder.Append("script>  <script>      $(function () {          var curChannelId = \"");
行 73: 	templateBuilder.Append(GetAllChannelId(curChannel.Id).ToString());
行 74: 
行 75: 	templateBuilder.Append("\";          $(\".hm-nav ul a\").each(function () {              var arel = $(this).attr(\"rel\");              if (curChannelId.indexOf(',' + arel + ',') > -1) { $(this).addClass(\"cur\"); }          })      })  </");

源文件: d:\wwwroot\hongmenglobal.com\templates\product\galvanized\index.aspx    行: 73

堆栈跟踪:


[RuntimeBinderException: “Evan.Model.DynamicModel”未包含“ParentId”的定义]
   CallSite.Target(Closure , CallSite , Object ) +263
   Evan.WebPageUI.Base.GetAllChannelId(Int32 channelId) +723
   CallSite.Target(Closure , CallSite , Base , Object ) +115
   System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2(CallSite site, T0 arg0, T1 arg1) +675
   CallSite.Target(Closure , CallSite , Base , Object ) +188
   Evan.WebPageUI.Base.GetAllChannelId(Int32 channelId) +3113
   System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +450
   ASP.templates_product_galvanized_index_aspx.OnInit(EventArgs e) in d:\wwwroot\hongmenglobal.com\templates\product\galvanized\index.aspx:73
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408


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