'/' 應用程式中發生伺服器錯誤。

並未將物件參考設定為物件的執行個體

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.NullReferenceException: 並未將物件參考設定為物件的執行個體

原始程式錯誤:


行 39:         ProductVO p = productService.Dao.DaoGetVOById<ProductVO>(int.Parse(hdnId.Value));
行 40: 
行 41:         imgPic.ImageUrl = p.picpath2;
行 42:         hkImg.NavigateUrl = p.picpath2;
行 43: 

原始程式檔: d:\website\bionet\code\content\product\pdetail.aspx.cs    行: 41

堆疊追蹤:


[NullReferenceException: 並未將物件參考設定為物件的執行個體]
   content_product_pdetail.initData() in d:\website\bionet\code\content\product\pdetail.aspx.cs:41
   content_product_pdetail.Page_Load(Object sender, EventArgs e) in d:\website\bionet\code\content\product\pdetail.aspx.cs:33
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427


版本資訊: Microsoft .NET Framework 版本:2.0.50727.8966; ASP.NET 版本:2.0.50727.8962