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

可為 Null 的物件必須具有值。

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

例外狀況詳細資訊: System.InvalidOperationException: 可為 Null 的物件必須具有值。

原始程式錯誤:


行 57:          //指定banner 頁面單元參數
行 58:             this.banner.categoryPage = pages.Data.num.ToString();
行 59:             if (pages.Data.root.Value>0)
行 60:             {
行 61:                 this.banner.categoryPage = pages.kindRoot(pages.Data.root);

原始程式檔: d:\userdata\vhosts\tfmc.com.tw\httpdocs\page\about\index.aspx.cs    行: 59

堆疊追蹤:


[InvalidOperationException: 可為 Null 的物件必須具有值。]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +52
   System.Nullable`1.get_Value() +13057133
   tw_about_index.Page_Load(Object sender, EventArgs e) in d:\userdata\vhosts\tfmc.com.tw\httpdocs\page\about\index.aspx.cs:59
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   WebMarkupMin.AspNet4.WebForms.MinifiedAndCompressedPageBase.OnLoad(EventArgs e) +17
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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