Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 242:
Line 243: templateBuilder.Append("' class=\"bkuan\"> \r\n
" + Utils.ObjectToStr(cdr2["title"]) + "
\r\n ");
Line 244: int tmodels = GetModelByAid(Utils.StrToInt(Utils.ObjectToStr(cdr2["id"]), 0));
Line 245:
Line 246: templateBuilder.Append("\r\n \r\n \r\n \r\n
[NullReferenceException: Object reference not set to an instance of an object.]
DTcms.Web.UI.Page.article_list.GetModelByAid(Int32 article_id) in F:\项目\2023\太阳集团tyc3345程序\DTcms.Web.UI\Page\article_list.cs:102
ASP.aspx_en_product_list_aspx.OnInit(EventArgs e) in c:\webhosting\data\aspx\en\product_list.aspx:244
System.Web.UI.Control.InitRecursive(Control namingContainer) +142
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +416
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0