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

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

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

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

原始程式錯誤:


行 45:     {
行 46:         InformationVO informationVO = infoService.GetInformationVO_Id(aid);
行 47:         lblTitle.Text = informationVO.Title;
行 48:         lblContent.Text = informationVO.Content;
行 49:         imgBigPic.ImageUrl = string.Format("{0}?type=pic&fileName={1}", SHOW_PIC, informationVO.FilePathBig);//秀大圖

原始程式檔: c:\website\youngvoice\content\proposal\proposal_inside.aspx.cs    行: 47

堆疊追蹤:


[NullReferenceException: 並未將物件參考設定為物件的執行個體]
   content_proposal_proposal_inside.LoadDataToUI(Int32 aid) in c:\website\youngvoice\content\proposal\proposal_inside.aspx.cs:47
   content_proposal_proposal_inside.Page_Load(Object sender, EventArgs e) in c:\website\youngvoice\content\proposal\proposal_inside.aspx.cs:38
   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.9174; ASP.NET 版本:2.0.50727.9175