Server Error in '/' Application.

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 86:             bool isSpecs1 = Web_Utility.isDocument(item.Specs1);
Line 87:             bool isSpecs2 = Web_Utility.isDocument(item.Specs2);
Line 88:             item.OtherInfo2 = (item.OtherInfo2.Trim() == "" ? string.Empty : string.Format("Hiện có: ", item.OtherInfo2));
Line 89:             item.Specs1 = (isSpecs1 == false ? string.Empty : string.Format(mSpecsFormat, item.Specs1, "Xem bản vẽ"));
Line 90:             item.Specs2 = (isSpecs2 == false ? string.Empty : string.Format(mSpecsFormat, item.Specs2, "Kết quả vLAB"));

Source File: d:\Websites\tranby2k\caosuviet.com\wwwroot\productDetail.aspx.cs    Line: 88

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   productDetail.getproductDetailWithSpecs(ViewProductCollection productDetails) in d:\Websites\tranby2k\caosuviet.com\wwwroot\productDetail.aspx.cs:88
   productDetail.loadData(String productUD, String productIndexUD) in d:\Websites\tranby2k\caosuviet.com\wwwroot\productDetail.aspx.cs:76
   productDetail.Page_Load(Object sender, EventArgs e) in d:\Websites\tranby2k\caosuviet.com\wwwroot\productDetail.aspx.cs:34
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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