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

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

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

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

原始程式錯誤:


行 57:         seo.Load(num);
行 58:         seo.Data.url = Request.Url.AbsoluteUri.Split('?')[0] + "?kind=" + ValString(num);
行 59:         if (!isStrNull(pro_kind.Data.pic[0]))
行 60:         {
行 61:             seo.Data.image = "//" + Request.Url.Host + ResolveUrl(pro_kind.Dir + pro_kind.Data.pic[0]);

原始程式檔: d:\web\shopping\moorejuice\page\product\p02.aspx.cs    行: 59

堆疊追蹤:


[NullReferenceException: 並未將物件參考設定為物件的執行個體。]
   tw_product_p02.setSEO(Int32 num) in d:\web\shopping\moorejuice\page\product\p02.aspx.cs:59
   tw_product_p02.Page_Load(Object sender, EventArgs e) in d:\web\shopping\moorejuice\page\product\p02.aspx.cs:101
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4494.0